pub struct Analyzer<'a, O: PineOutput> { /* private fields */ }Implementations§
Source§impl<'a, O: PineOutput> Analyzer<'a, O>
impl<'a, O: PineOutput> Analyzer<'a, O>
pub fn new( builtins: &'a HashMap<String, Value<O>>, loader: Option<&'a dyn LibraryLoader>, ) -> Self
Sourcepub fn analyze(self, program: &Program) -> Vec<Diagnostic>
pub fn analyze(self, program: &Program) -> Vec<Diagnostic>
Analyze a whole program, returning the errors found.
Sourcepub fn into_analysis(self, program: &Program) -> (Vec<Diagnostic>, SymbolTable)
pub fn into_analysis(self, program: &Program) -> (Vec<Diagnostic>, SymbolTable)
Analyze a whole program, returning both the errors and the symbol table reconstructed from the same walk.
Auto Trait Implementations§
impl<'a, O> !RefUnwindSafe for Analyzer<'a, O>
impl<'a, O> !Send for Analyzer<'a, O>
impl<'a, O> !Sync for Analyzer<'a, O>
impl<'a, O> !UnwindSafe for Analyzer<'a, O>
impl<'a, O> Freeze for Analyzer<'a, O>
impl<'a, O> Unpin for Analyzer<'a, O>
impl<'a, O> UnsafeUnpin for Analyzer<'a, O>
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