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
ShellExpressionSyntaxShellOperandExpressionSyntax
Properties
| Name | Description |
|---|---|
| Value | The operand text with quoting resolved, or null when it needs runtime expansion. |
| Word |
Word
Syntax.g.csMethods
| Name | Description |
|---|---|
| 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.cspublic override void Accept(ShellSyntaxVisitor visitor)Parameters
visitorShellSyntaxVisitor
No documentation is available.
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Syntax.g.cspublic override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)No documentation is available.
Update(ShellWordSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public ShellOperandExpressionSyntax Update(ShellWordSyntax word)WithWord(ShellWordSyntax)
Syntax.g.csReturns this node with word in place of its ShellOperandExpressionSyntax.Word.
public ShellOperandExpressionSyntax WithWord(ShellWordSyntax word)