Struct moore_svlog::resolver::Scope [−][src]
pub struct Scope<'a> {
pub node: &'a dyn ScopedNode<'a>,
pub parent: Option<&'a dyn ScopedNode<'a>>,
pub defs: HashMap<Name, Def<'a>>,
pub wildcard_imports: Vec<&'a ImportItem<'a>>,
pub subscopes: Vec<&'a dyn ScopedNode<'a>>,
}
Expand description
A scope.
Fields
node: &'a dyn ScopedNode<'a>
The node which generates this scope.
parent: Option<&'a dyn ScopedNode<'a>>
The node which generates the parent scope, if any.
defs: HashMap<Name, Def<'a>>
The definitions in this scope.
wildcard_imports: Vec<&'a ImportItem<'a>>
The wildcard imports in this scope.
subscopes: Vec<&'a dyn ScopedNode<'a>>
The subscopes.