Struct llhd::module::ModuleContext
[−]
[src]
pub struct ModuleContext<'tctx> { /* fields omitted */ }
Methods
impl<'tctx> ModuleContext<'tctx>
[src]
fn new(module: &Module) -> ModuleContext
[src]
fn function(&self, func: FunctionRef) -> &Function
[src]
fn process(&self, prok: ProcessRef) -> &Process
[src]
fn entity(&self, entity: EntityRef) -> &Entity
[src]
Trait Implementations
impl<'tctx> Context for ModuleContext<'tctx>
[src]
fn try_value(&self, value: &ValueRef) -> Option<&Value>
[src]
Try to resolve a ValueRef
to an actual &Value
reference. May fail if the value is not known to the context. Read more
fn parent(&self) -> Option<&Context>
[src]
Get the parent context to which value resolution shall escalate. May return None
for the context at the top of the hierarchy. Read more
fn value(&self, value: &ValueRef) -> &Value
[src]
Resolve a ValueRef
to an actual &Value
reference. Panics if the value is unknown to this context and its parents. Read more
fn ty(&self, value: &ValueRef) -> Type
[src]
Get the type of a value.
fn name(&self, value: &ValueRef) -> Option<&str>
[src]
Get the name of a value.