gws.spec.generator.extractor

Select the types the server needs at run time.

Source code: gws.spec.generator.extractor

Module Contents

gws.spec.generator.extractor.extract(gen: gws.spec.generator.base.Generator)

Extract the server types into gen.serverTypes.

The server needs:

  • all gws.ext.object classes, but not their properties,

  • all gws.ext.config and gws.ext.props classes and their properties, recursively,

  • command methods (gws.ext.command), their owners and their arguments, recursively.

Types reachable from the application Config are marked with isConfig. The result is sorted by uid.

Parameters:

gen – Generator state.

Raises:

GeneratorError – If a referenced type is unknown or cannot be extracted.