:py:mod:`raesl.compile.typechecking.compdef_vargroup_builder` ============================================================= .. py:module:: raesl.compile.typechecking.compdef_vargroup_builder .. autoapi-nested-parse:: Variable groups in a component. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: raesl.compile.typechecking.compdef_vargroup_builder.CollectedVarGroup raesl.compile.typechecking.compdef_vargroup_builder.CompDefVarGroupBuilder .. py:class:: CollectedVarGroup(name_tok: raesl.compile.scanner.Token, child_name_toks: List[raesl.compile.scanner.Token]) Temporary data storage of found variable groups. .. py:class:: CompDefVarGroupBuilder(comp_child_builders: raesl.compile.typechecking.compdef_builder.CompDefChildBuilders) Collect and check variable groups of a component definition. :param comp_child_builders: Storage of child builders for a component definition. .. attribute:: collected_var_groups Collected var group instances in the component. .. attribute:: last_vgroup Link to last added instance to allow adding instance arguments. .. py:method:: new_vargroup(name_tok: raesl.compile.scanner.Token) Parser found the start of a new variable group definition. Create a new group for it. :param name_tok: Name of the new variable group. .. py:method:: vgroup_add_vars(varpart_name_toks: List[raesl.compile.scanner.Token]) Parser found a line with variables that are part of the group. Store them for further processing afterwards. :param varpart_name_toks: Name of variable parts that should become included in the last defined variable group. .. py:method:: finish_comp(comp_def: raesl.compile.ast.components.ComponentDefinition, _spec: raesl.compile.ast.specification.Specification) Check the collected variable groups, report errors, and add the instances to the given component. :param comp_def: Component definition to extend with the found variable groups. Also a source of available variables and parameters. :param spec: Specification being constructed. Source for types and relation definitions processed previously.