YamlSyntaxNode Class

Represents a node in the YAML syntax tree.

public abstract class YamlSyntaxNode

Constructors

NameDescription
YamlSyntaxNode(YamlSourceSpan, YamlSourceSpan)Initializes a new instance of the YamlSyntaxNode class.

YamlSyntaxNode(YamlSourceSpan, YamlSourceSpan)

YamlSyntaxNode.cs

Initializes a new instance of the YamlSyntaxNode class.

protected YamlSyntaxNode(YamlSourceSpan span, YamlSourceSpan fullSpan)

Parameters

span YamlSourceSpan
The node span excluding trivia.
fullSpan YamlSourceSpan
The node span including trivia.

Properties

NameDescription
FullSpanGets the node span including trivia.
SpanGets the node span excluding trivia.

Gets the node span including trivia.

public YamlSourceSpan FullSpan { get; }

Property value

YamlSourceSpan

Gets the node span excluding trivia.

public YamlSourceSpan Span { get; }

Property value

YamlSourceSpan