Struct moore_vhdl::symtbl::SymTbl
[−]
[src]
pub struct SymTbl { pub root_scope: Scope, pub scopes: HashMap<NodeId, Scope>, // some fields omitted }
Fields
root_scope: Scope
scopes: HashMap<NodeId, Scope>
Methods
impl SymTbl
[src]
fn new() -> SymTbl
[src]
Create a new empty symbol table.
fn alloc_id(&mut self) -> NodeId
[src]
Allocate a new node ID that has not yet been used.
fn get_library_id(&mut self, name: Name) -> NodeId
[src]
Obtain the node ID for the library with the given name, or allocate a new ID if none exists yet. Use this function to create a scope for this library.
fn add_scope(&mut self, scope: Scope)
[src]
Add a scope to the symbol table. If a scope with the same node ID already exists, the new scope's contents are merged into the existing scope. This allows for gradual extension of the contents of a scope. Useful for populating library scopes.