Type Alias taplo::syntax::SyntaxNode

source ·
pub type SyntaxNode = SyntaxNode<Lang>;

Aliased Type§

struct SyntaxNode { /* private fields */ }

Trait Implementations§

source§

impl SyntaxExt for SyntaxNode

source§

fn find_node(&self, offset: TextSize, inclusive: bool) -> Option<SyntaxNode>

Return a syntax node that contains the given offset.
source§

fn find(&self, kind: SyntaxKind) -> Option<SyntaxElement>

Find a node or token by its kind.
source§

fn find_node_deep( &self, offset: TextSize, inclusive: bool ) -> Option<SyntaxNode>

Find the deepest node that contains the given offset.