SyntaxToken

Type Alias SyntaxToken 

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

Represents a token in the concrete syntax tree.

Aliased Type§

pub struct SyntaxToken { /* private fields */ }

Trait Implementations§

Source§

impl TreeToken for SyntaxToken

Source§

type Node = SyntaxNode<WorkflowDescriptionLanguage>

The associated node type for the token.
Source§

fn parent(&self) -> SyntaxNode

Gets the parent node of the token.
Source§

fn kind(&self) -> SyntaxKind

Gets the syntax kind for the token.
Source§

fn text(&self) -> &str

Gets the text of the token.
Source§

fn span(&self) -> Span

Gets the span of the token.