module documentation

Undocumented

Function normalize Undocumented
Constant COMMA Undocumented
Constant DOT Undocumented
Function _add_global_aliases Add globals aliases.
Function _check_undefined Undocumented
Function _check_variants Create Variant objects from VariantStubs
Function _evaluate_defaults Replace enum and constant values with literal values
Function _expand_aliases Undocumented
Function _make_props Undocumented
Function _resolve_aliases Undocumented
Function _synthesize_ext_configs_and_props Synthesize gws.ext.config... and gws.ext.props for ext objects that don't define them explicitly
Function _synthesize_ext_type_properties Synthesize type properties for ext.config and ext.props objects
Function _synthesize_ext_variant_types Synthesize by-category variant types for ext objects
Variable _type_lists Undocumented
Variable _type_scalars Undocumented
def normalize(gen: base.Generator): (source)

Undocumented

COMMA: str = (source)

Undocumented

Value
','
DOT: str = (source)

Undocumented

Value
'.'
def _add_global_aliases(gen): (source)

Add globals aliases.

If we have mod.GlobalName and mod.some.module.GlobalName, and mod.some.module is in GLOBAL_MODULES, the former should an alias for the latter.

def _check_undefined(gen): (source)

Undocumented

def _check_variants(gen): (source)

Create Variant objects from VariantStubs

Example:

Given

Foo: VariantStub { items ['Type1', 'Type2'] } Type1 { type t.Literal['first'] } Type2 { type t.Literal['second'] }

we create a mapping { "type value" => "type name" }, e.g;

Foo: Variant {
tMembers {
first: Type1 second: Type2

}

}

def _evaluate_defaults(gen): (source)

Replace enum and constant values with literal values

def _expand_aliases(gen): (source)

Undocumented

def _make_props(gen): (source)

Undocumented

def _resolve_aliases(gen): (source)

Undocumented

def _synthesize_ext_configs_and_props(gen): (source)

Synthesize gws.ext.config... and gws.ext.props for ext objects that don't define them explicitly

def _synthesize_ext_type_properties(gen): (source)

Synthesize type properties for ext.config and ext.props objects

def _synthesize_ext_variant_types(gen): (source)

Synthesize by-category variant types for ext objects

Example

When we have

gws.ext.object.layer.qgis gws.ext.object.layer.wms gws.ext.object.layer.wfs

This will create a Variant gws.ext.object.layer with the members qgis, wms, wfs

_type_lists: list[str] = (source)

Undocumented

_type_scalars: list[str] = (source)

Undocumented