pub struct ParseContext<'f, 's> { /* private fields */ }
Expand description
High-level Parsing Interface
Contains the state required for parsing, and deals with the separate code paths taken for different SourceTypes
Implementations§
Source§impl<'f, 's> ParseContext<'f, 's>
impl<'f, 's> ParseContext<'f, 's>
pub fn new( lexer_factory: &'f LexerBuilder, interner: &'s mut StringInterner, ) -> Self
pub fn parse_ast( &mut self, source: SourceText, ) -> Result<Vec<StmtMeta>, Vec<ParserError>>
Auto Trait Implementations§
impl<'f, 's> Freeze for ParseContext<'f, 's>
impl<'f, 's> !RefUnwindSafe for ParseContext<'f, 's>
impl<'f, 's> !Send for ParseContext<'f, 's>
impl<'f, 's> !Sync for ParseContext<'f, 's>
impl<'f, 's> Unpin for ParseContext<'f, 's>
impl<'f, 's> !UnwindSafe for ParseContext<'f, 's>
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