pub struct ContextSymbolResolver<'a> {
context: &'a CompilationContext,
}
Expand description
Context-based symbol resolver that implements symbol lookup operations using the compilation context’s symbol table.
This implementation provides the standard symbol resolution behavior by delegating to the compilation context’s symbol lookup mechanisms.
Fields§
§context: &'a CompilationContext
Implementations§
Source§impl<'a> ContextSymbolResolver<'a>
impl<'a> ContextSymbolResolver<'a>
Sourcepub fn new(context: &'a CompilationContext) -> Self
pub fn new(context: &'a CompilationContext) -> Self
Create a new context-based symbol resolver
§Arguments
context
- The compilation context containing the symbol table
Trait Implementations§
Source§impl<'a> SymbolResolver for ContextSymbolResolver<'a>
impl<'a> SymbolResolver for ContextSymbolResolver<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContextSymbolResolver<'a>
impl<'a> RefUnwindSafe for ContextSymbolResolver<'a>
impl<'a> Send for ContextSymbolResolver<'a>
impl<'a> Sync for ContextSymbolResolver<'a>
impl<'a> Unpin for ContextSymbolResolver<'a>
impl<'a> UnwindSafe for ContextSymbolResolver<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more