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
impl TreeNode for SyntaxNode
Source§type Token = SyntaxToken<WorkflowDescriptionLanguage>
type Token = SyntaxToken<WorkflowDescriptionLanguage>
The associated token type for the tree node.
Source§fn kind(&self) -> SyntaxKind
fn kind(&self) -> SyntaxKind
Gets the syntax kind of the node.
Source§fn children_with_tokens(
&self,
) -> impl Iterator<Item = NodeOrToken<Self, Self::Token>>
fn children_with_tokens( &self, ) -> impl Iterator<Item = NodeOrToken<Self, Self::Token>>
Gets all the children of the node, including tokens.
Source§fn last_token(&self) -> Option<Self::Token>
fn last_token(&self) -> Option<Self::Token>
Gets the last token of the node.
Source§fn descendants(&self) -> impl Iterator<Item = Self>
fn descendants(&self) -> impl Iterator<Item = Self>
Gets the node descendants of the node.