module documentation
Undocumented
Function | normalize |
Undocumented |
Constant | COMMA |
Undocumented |
Constant | DOT |
Undocumented |
Function | _add |
Add globals aliases. |
Function | _check |
Undocumented |
Function | _check |
Create Variant objects from VariantStubs |
Function | _evaluate |
Replace enum and constant values with literal values |
Function | _expand |
Undocumented |
Function | _make |
Undocumented |
Function | _resolve |
Undocumented |
Function | _synthesize |
Synthesize gws.ext.config... and gws.ext.props for ext objects that don't define them explicitly |
Function | _synthesize |
Synthesize type properties for ext.config and ext.props objects |
Function | _synthesize |
Synthesize by-category variant types for ext objects |
Variable | _type |
Undocumented |
Variable | _type |
Undocumented |
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.
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
}
}
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