TomlSyntaxNode Class

The base of every node in a TOML tree.

public abstract class TomlSyntaxNode : SyntaxNode
Inheritance
SyntaxNode TomlSyntaxNode

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 TomlSyntaxNode? Parent { get; }

Property value

TomlSyntaxNode?

Methods

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

Accept overloads

Accept(TomlSyntaxVisitor)

Calls the method of visitor that matches this node.

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

Accept<TResult>(TomlSyntaxVisitor<TResult>)

Calls the method of visitor that matches this node.

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

TResult?

Exceptions
ArgumentNullException
visitor is null.

Gets what kind of node this is.

public SyntaxKind Kind()

Returns

SyntaxKind