JsonLiteralSyntax Class

One of true, false, or null. Which one is the node's kind.

public sealed class JsonLiteralSyntax : JsonValueSyntax
Inheritance
JsonValueSyntax JsonLiteralSyntax

Properties

NameDescription
LiteralToken
public SyntaxToken LiteralToken { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(JsonSyntaxVisitor)
Accept<TResult>(JsonSyntaxVisitor<TResult>)
Update(SyntaxToken)Returns this literal with a different token, or itself when nothing changed.
WithLiteralToken(SyntaxToken)

Accept overloads

Accept(JsonSyntaxVisitor)

JsonLiteralSyntax.cs
public override void Accept(JsonSyntaxVisitor visitor)
Parameters
visitor JsonSyntaxVisitor

No documentation is available.

Accept<TResult>(JsonSyntaxVisitor<TResult>)

JsonLiteralSyntax.cs
public override TResult? Accept<TResult>(JsonSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor JsonSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken)

JsonLiteralSyntax.cs

Returns this literal with a different token, or itself when nothing changed.

public JsonLiteralSyntax Update(SyntaxToken literalToken)

Parameters

literalToken SyntaxToken

Returns

JsonLiteralSyntax

Remarks

The kind of the node follows the keyword, so replacing true with null changes both.

WithLiteralToken(SyntaxToken)

JsonLiteralSyntax.cs
public JsonLiteralSyntax WithLiteralToken(SyntaxToken literalToken)

Parameters

literalToken SyntaxToken

Returns

JsonLiteralSyntax

No documentation is available.