Type Alias SyntaxNode

Source
pub type SyntaxNode = SyntaxNode<TomlLang>;

Aliased Type§

pub struct SyntaxNode { /* private fields */ }

Trait Implementations§

Source§

impl SyntaxNodeExtTrait for SyntaxNode

Source§

fn token_text(&self) -> String

walks tokens collecting each tokens text into a final String.
Source§

fn deep_eq(&self, other: &Self) -> bool

rowan::SyntaxNode by default only compares pointer equality this method addition allows comparison of every token, the same file parsed multiple times will return true, with pointer eq this would be false.