slang::Parser::Metadata struct

Various metadata collected during parsing.

Contents

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.

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.