ShellOperandExpressionSyntax Class

Represents a leaf of an expression: a number, a variable, or a word. The value is held as a ShellWordSyntax so quoting, expansions, and globs keep the structure they have everywhere else.

public sealed class ShellOperandExpressionSyntax : ShellExpressionSyntax
Inheritance
ShellExpressionSyntax ShellOperandExpressionSyntax

Properties

NameDescription
ValueThe operand text with quoting resolved, or null when it needs runtime expansion.
Word

The operand text with quoting resolved, or null when it needs runtime expansion.

public string? Value { get; }

Property value

string?

public ShellWordSyntax Word { get; }

Property value

ShellWordSyntax

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(ShellWordSyntax)Returns this node with the given parts, or itself when nothing changed.
WithWord(ShellWordSyntax)Returns this node with word in place of its ShellOperandExpressionSyntax.Word.

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(ShellWordSyntax)

Syntax.g.cs

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

WithWord(ShellWordSyntax)

Syntax.g.cs

Returns this node with word in place of its ShellOperandExpressionSyntax.Word.