PowerShellLiteralExpressionSyntax Class

Represents a number, a verbatim string, or a bare word used as a value.

public sealed class PowerShellLiteralExpressionSyntax : ShellExpressionSyntax
Inheritance
ShellExpressionSyntax PowerShellLiteralExpressionSyntax

Properties

NameDescription
Token
ValueThe literal value with quoting resolved.
public SyntaxToken Token { get; }

Property value

SyntaxToken

No documentation is available.

The literal value with quoting resolved.

public string Value { get; }

Property value

string

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithToken(SyntaxToken)Returns this node with token in place of its PowerShellLiteralExpressionSyntax.Token.

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.

WithToken(SyntaxToken)

Syntax.g.cs

Returns this node with token in place of its PowerShellLiteralExpressionSyntax.Token.