JsonSyntaxNode Class

The base of every node in a JSON tree.

public abstract class JsonSyntaxNode : SyntaxNode
Inheritance
SyntaxNode JsonSyntaxNode

Properties

NameDescription
ParentGets the node this one is a child of, or null when it is the root of its tree.

Gets the node this one is a child of, or null when it is the root of its tree.

public JsonSyntaxNode? Parent { get; }

Property value

JsonSyntaxNode?

Methods

NameDescription
Accept(JsonSyntaxVisitor)Calls the method of visitor that matches this node.
Accept<TResult>(JsonSyntaxVisitor<TResult>)Calls the method of visitor that matches this node.
Kind()Gets what kind of node this is.

Accept overloads

Accept(JsonSyntaxVisitor)

Calls the method of visitor that matches this node.

public abstract void Accept(JsonSyntaxVisitor visitor)
Parameters
visitor JsonSyntaxVisitor
Exceptions
ArgumentNullException
visitor is null.

Accept<TResult>(JsonSyntaxVisitor<TResult>)

Calls the method of visitor that matches this node.

public abstract TResult? Accept<TResult>(JsonSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor JsonSyntaxVisitor<TResult>
Returns

TResult?

Exceptions
ArgumentNullException
visitor is null.

Gets what kind of node this is.

public SyntaxKind Kind()

Returns

SyntaxKind