gws.spec.generator.parser¶
Parse Python source files into spec types.
Source code: gws.spec.generator.parser
Module Contents¶
- gws.spec.generator.parser.DOT = '.'¶
- gws.spec.generator.parser.parse(gen: gws.spec.generator.base.Generator, parse_all=False)¶
Parse the Python files of all chunks and add their types to the generator.
Modules containing
# gws:nospecare skipped.- Parameters:
gen – Generator state.
parse_all – If True, parse all methods with all arguments, otherwise only command methods with their last argument.
- Raises:
GeneratorError – If a file cannot be parsed.