Type Definition ludtwig_parser::syntax::untyped::SyntaxNode
source · pub type SyntaxNode = SyntaxNode<TemplateLanguage>;Expand description
To work with the parse results we need a view into the
green tree - the Syntax tree.
It is also immutable, like a GreenNode,
but it contains parent pointers, offsets, and
has identity semantics.
Trait Implementations§
source§impl SyntaxNodeExt for SyntaxNode
impl SyntaxNodeExt for SyntaxNode
source§fn text_range_trimmed_trivia(&self) -> TextRange
fn text_range_trimmed_trivia(&self) -> TextRange
Trims leading trivia from the original text_range