Type Definition SyntaxNode
taplo::syntax
type SyntaxNode = SyntaxNode<Lang>;
impl SyntaxExt for SyntaxNode
fn find_node(&self, offset: TextSize, inclusive: bool) -> Option<SyntaxNode>
Return a syntax node that contains the given offset.
fn find(&self, kind: SyntaxKind) -> Option<SyntaxElement>
Find a node or token by its kind.
fn find_node_deep( &self, offset: TextSize, inclusive: bool) -> Option<SyntaxNode>
Find the deepest node that contains the given offset.