struct
#include <slang/parsing/Parser.h>
Metadata Various metadata collected during parsing.
Contents
- Reference
Public types
- struct Node
- Collection of metadata that can be associated with a syntax node at parse time.
Public variables
- flat_hash_map<const SyntaxNode*, Node> nodeMap
- flat_hash_set<string_view> globalInstances
- SmallVectorSized<const BindDirectiveSyntax*, 4> bindDirectives
- A list of all bind directives parsed.
- SmallVectorSized<const DefParamSyntax*, 4> defparams
- A list of all defparams parsed.
Variable documentation
flat_hash_map<const SyntaxNode*, Node> slang:: Parser:: Metadata:: nodeMap
Specific metadata that was in effect when certain syntax nodes were parsed (such as various bits of preprocessor state).
flat_hash_set<string_view> slang:: Parser:: Metadata:: globalInstances
A set of names of all instantiations of global modules/interfaces/programs. This can be used to determine which modules should be considered as top-level roots of the design.