ShellWordSyntax Class
Represents a single shell word: a command name, an argument, or a redirection target.
public sealed class ShellWordSyntax : ShellSyntaxNode- Inheritance
ShellSyntaxNodeShellWordSyntax
Properties
| Name | Description |
|---|---|
| Parts | |
| Value | Returns the word text with quotes and escapes resolved, or null when the value depends on runtime expansion (a variable reference or command substitution). |
Parts
Syntax.g.csValue
ShellWordSyntax.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxList<ShellWordPartSyntax>) | Returns this node with the given parts, or itself when nothing changed. |
| WithParts(SyntaxList<ShellWordPartSyntax>) | Returns this node with parts in place of its ShellWordSyntax.Parts. |
| WithText(string) | Returns this word rewritten as a single literal part holding text. |
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(SyntaxList<ShellWordPartSyntax>)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public ShellWordSyntax Update(SyntaxList<ShellWordPartSyntax> parts)WithParts(SyntaxList<ShellWordPartSyntax>)
Syntax.g.csReturns this node with parts in place of its ShellWordSyntax.Parts.
public ShellWordSyntax WithParts(SyntaxList<ShellWordPartSyntax> parts)WithText(string)
ShellWordSyntax.csReturns this word rewritten as a single literal part holding text.
public ShellWordSyntax WithText(string text)