YamlSyntaxToken Struct

Represents a YAML syntax token.

public readonly struct YamlSyntaxToken

Constructors

NameDescription
YamlSyntaxToken(YamlSyntaxKind, YamlSourceSpan, string)Initializes a new instance of the YamlSyntaxToken struct.

YamlSyntaxToken(YamlSyntaxKind, YamlSourceSpan, string)

YamlSyntaxToken.cs

Initializes a new instance of the YamlSyntaxToken struct.

public YamlSyntaxToken(YamlSyntaxKind kind, YamlSourceSpan span, string text)

Parameters

kind YamlSyntaxKind
The token kind.
span YamlSourceSpan
The token span.
text string
The token text.

Properties

NameDescription
KindGets the token kind.
SpanGets the token span.
TextGets the token text.

Gets the token kind.

public YamlSyntaxKind Kind { get; }

Property value

YamlSyntaxKind

Gets the token span.

public YamlSourceSpan Span { get; }

Property value

YamlSourceSpan

Gets the token text.

public string Text { get; }

Property value

string

Methods

NameDescription
ToString()Returns the fully qualified type name of this instance.

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string The fully qualified type name.