Struct sixtyfps_compilerlib::parser::DefaultParser [−][src]
pub struct DefaultParser<'a> { /* fields omitted */ }Implementations
impl<'a> DefaultParser<'a>[src]
impl<'a> DefaultParser<'a>[src]pub fn new(source: &str, diags: &'a mut BuildDiagnostics) -> Self[src]
Constructor that create a parser from the source code
pub fn consume_ws(&mut self)[src]
Consume all the whitespace
Trait Implementations
impl Parser for DefaultParser<'_>[src]
impl Parser for DefaultParser<'_>[src]fn start_node_impl(
&mut self,
kind: SyntaxKind,
checkpoint: Option<Self::Checkpoint>,
_: NodeToken
)[src]
&mut self,
kind: SyntaxKind,
checkpoint: Option<Self::Checkpoint>,
_: NodeToken
)
fn finish_node_impl(&mut self, _: NodeToken)[src]
fn nth(&mut self, n: usize) -> Token[src]
Peek the n’th token, not including whitespaces and comments
fn consume(&mut self)[src]
Consume the current token
fn error(&mut self, e: impl Into<String>)[src]
Reports an error at the current token location
type Checkpoint = Checkpoint
fn checkpoint(&mut self) -> Self::Checkpoint[src]
#[must_use = "The node will be finished when it is dropped"]fn start_node(&mut self, kind: SyntaxKind) -> Node<'_, Self>[src]
#[must_use = "The node will be finished when it is dropped"]
fn start_node(&mut self, kind: SyntaxKind) -> Node<'_, Self>#[must_use = "The node will be finished when it is dropped"]fn start_node_at(
&mut self,
checkpoint: Self::Checkpoint,
kind: SyntaxKind
) -> Node<'_, Self>[src]
#[must_use = "The node will be finished when it is dropped"]
fn start_node_at(&mut self,
checkpoint: Self::Checkpoint,
kind: SyntaxKind
) -> Node<'_, Self>
fn peek(&mut self) -> Token[src]
fn expect(&mut self, kind: SyntaxKind) -> bool[src]
fn test(&mut self, kind: SyntaxKind) -> bool[src]
fn until(&mut self, kind: SyntaxKind)[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DefaultParser<'a>
impl<'a> !RefUnwindSafe for DefaultParser<'a>impl<'a> !Send for DefaultParser<'a>
impl<'a> !Send for DefaultParser<'a>impl<'a> !Sync for DefaultParser<'a>
impl<'a> !Sync for DefaultParser<'a>impl<'a> Unpin for DefaultParser<'a>
impl<'a> Unpin for DefaultParser<'a>impl<'a> !UnwindSafe for DefaultParser<'a>
impl<'a> !UnwindSafe for DefaultParser<'a>