Struct rslint_parser::LossyTreeSink [−][src]
pub struct LossyTreeSink<'a> { /* fields omitted */ }
Expand description
Structure to convert events to a lossy syntax tree which does not preserve whitespace.
Implementations
Make a new tree sink but start the sink at a specific token, this is used for making completed markers into AST nodes for rules which need them.
Panics
Panics if the token start does not line up to a token’s start index or is out of bounds
Trait Implementations
Consume multiple tokens and glue them into one kind
Adds new token to the current branch.
Start new branch and make it current.
Finish current branch and restore previous branch as current. Read more
Emit errors