SyntaxNodeBase Class

Base class for SyntaxNode and SyntaxTrivia

public abstract class SyntaxNodeBase

Constructors

NameDescription
SyntaxNodeBase()

SyntaxNodeBase()

protected SyntaxNodeBase()

No documentation is available.

Properties

NameDescription
ParentGets the parent of this node.

Gets the parent of this node.

public SyntaxNode? Parent { get; }

Property value

SyntaxNode?

Methods

NameDescription
Accept(SyntaxVisitor)Allow to visit this instance with the specified visitor.
ToDebuggerDisplay()Returns a debugger-friendly display string for this node.

Accept(SyntaxVisitor)

Allow to visit this instance with the specified visitor.

public abstract void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor

ToDebuggerDisplay()

SyntaxNodeBase.cs

Returns a debugger-friendly display string for this node.

protected virtual string ToDebuggerDisplay()

Returns

string A display string used by the debugger.

Fields

NameDescription
SpanThe text source span, read-write, manually updated from children.

Span

The text source span, read-write, manually updated from children.

public SourceSpan Span