ShellRawExpressionSyntax Class

Represents expression text kept verbatim, without further structure. Used for constructs whose inner grammar the tree does not model, and as the never-throw fallback when text cannot be parsed as an expression.

public sealed class ShellRawExpressionSyntax : ShellExpressionSyntax
Inheritance
ShellExpressionSyntax ShellRawExpressionSyntax

Properties

NameDescription
TextThe raw expression text.
TextToken

The raw expression text.

public string Text { get; }

Property value

string

TextToken

Syntax.g.cs
public SyntaxToken TextToken { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithTextToken(SyntaxToken)Returns this node with textToken in place of its ShellRawExpressionSyntax.TextToken.

Accept overloads

Accept(ShellSyntaxVisitor)

Syntax.g.cs
public override void Accept(ShellSyntaxVisitor visitor)
Parameters
visitor ShellSyntaxVisitor

No documentation is available.

Accept<TResult>(ShellSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor ShellSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

public ShellRawExpressionSyntax Update(SyntaxToken textToken)

Parameters

textToken SyntaxToken

Returns

ShellRawExpressionSyntax

WithTextToken(SyntaxToken)

Syntax.g.cs

Returns this node with textToken in place of its ShellRawExpressionSyntax.TextToken.

public ShellRawExpressionSyntax WithTextToken(SyntaxToken textToken)

Parameters

textToken SyntaxToken

Returns

ShellRawExpressionSyntax