:py:mod:`raesl.compile.typechecking.compdef_need_builder` ========================================================= .. py:module:: raesl.compile.typechecking.compdef_need_builder .. autoapi-nested-parse:: Code for handling 'needs' in component definitions. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: raesl.compile.typechecking.compdef_need_builder.CompDefNeedBuilder .. py:class:: CompDefNeedBuilder(comp_child_builders: raesl.compile.typechecking.compdef_builder.CompDefChildBuilders) Class for handling 'need' sections. :param comp_child_builders: Storage of child builders for a component definition. .. attribute:: needs Collected needs. .. py:method:: add_need(label_tok: raesl.compile.scanner.Token, subject_tok: raesl.compile.scanner.Token, description: str) Parser found another need, store it for future processing. .. py:method:: finish_comp(comp_def: raesl.compile.ast.components.ComponentDefinition, _spec: raesl.compile.ast.specification.Specification) Check the collected needs, and store them in the component definition.