:py:mod:`raesl.compile.typechecking.compdef_comment_builder` ============================================================ .. py:module:: raesl.compile.typechecking.compdef_comment_builder .. autoapi-nested-parse:: Deal with the comment sections in a component definition. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: raesl.compile.typechecking.compdef_comment_builder.CompDefCommentBuilder .. py:class:: CompDefCommentBuilder(comp_child_builders: raesl.compile.typechecking.compdef_builder.CompDefChildBuilders) Collect the names in the 'comments' section, and hook them into the doc comments distributor. :param comp_child_builders: Component definition's section builders storage. .. attribute:: diag_store Diagnostics storage of component definition child builders. .. attribute:: name_toks Names occurring in a comment section, collected during parsing. .. py:method:: add_comment(name_tok: raesl.compile.scanner.Token) Parser found a name in a comments section, store it for future processing. .. py:method:: finish_comp(comp_def: raesl.compile.ast.components.ComponentDefinition, doc_distributor: raesl.compile.ast.comment_storage.DocCommentDistributor) Process all collected names. This method should be the final step in processing a component definition, as it needs all elements that take doc comments. :param comp_def: Component definition to finish. :param doc_distributor: Object that distributes doc comments to interested elements of the specification.