Type Alias SyntaxNode

Source
pub type SyntaxNode = SyntaxNode<WorkflowDescriptionLanguage>;
Expand description

Represents a node in the concrete syntax tree.

Aliased Type§

pub struct SyntaxNode { /* private fields */ }

Trait Implementations§

Source§

impl TreeNode for SyntaxNode

Source§

type Token = SyntaxToken<WorkflowDescriptionLanguage>

The associated token type for the tree node.
Source§

fn parent(&self) -> Option<SyntaxNode>

Gets the parent node of the node. Read more
Source§

fn kind(&self) -> SyntaxKind

Gets the syntax kind of the node.
Source§

fn children(&self) -> impl Iterator<Item = Self>

Gets the children nodes of the node.
Source§

fn children_with_tokens( &self, ) -> impl Iterator<Item = NodeOrToken<Self, Self::Token>>

Gets all the children of the node, including tokens.
Source§

fn text(&self) -> impl Display

Gets the text of the node. Read more
Source§

fn span(&self) -> Span

Gets the span of the node.
Source§

fn last_token(&self) -> Option<Self::Token>

Gets the last token of the node.
Source§

fn descendants(&self) -> impl Iterator<Item = Self>

Gets the node descendants of the node.
Source§

fn ancestors(&self) -> impl Iterator<Item = Self>

Gets the ancestors of the node.