ShellCommandSubstitutionSyntax Class
Represents a command substitution such as $(...) or a backquoted command.
public sealed class ShellCommandSubstitutionSyntax : ShellWordPartSyntax- Inheritance
ShellWordPartSyntaxShellCommandSubstitutionSyntax
Properties
| Name | Description |
|---|---|
| CloseToken | |
| IsBackquoted | Returns true for the legacy backquoted form. |
| OpenToken | |
| Statements |
CloseToken
Syntax.g.csIsBackquoted
ShellCommandSubstitutionSyntax.csOpenToken
Syntax.g.csStatements
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken) | Returns this node with the given parts, or itself when nothing changed. |
| WithCloseToken(SyntaxToken) | Returns this node with closeToken in place of its ShellCommandSubstitutionSyntax.CloseToken. |
| WithOpenToken(SyntaxToken) | Returns this node with openToken in place of its ShellCommandSubstitutionSyntax.OpenToken. |
| WithStatements(ShellStatementListSyntax) | Returns this node with statements in place of its ShellCommandSubstitutionSyntax.Statements. |
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(SyntaxToken, ShellStatementListSyntax, SyntaxToken)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public ShellCommandSubstitutionSyntax Update(SyntaxToken openToken, ShellStatementListSyntax statements, SyntaxToken closeToken)WithCloseToken(SyntaxToken)
Syntax.g.csReturns this node with closeToken in place of its ShellCommandSubstitutionSyntax.CloseToken.
public ShellCommandSubstitutionSyntax WithCloseToken(SyntaxToken closeToken)WithOpenToken(SyntaxToken)
Syntax.g.csReturns this node with openToken in place of its ShellCommandSubstitutionSyntax.OpenToken.
public ShellCommandSubstitutionSyntax WithOpenToken(SyntaxToken openToken)WithStatements(ShellStatementListSyntax)
Syntax.g.csReturns this node with statements in place of its ShellCommandSubstitutionSyntax.Statements.
public ShellCommandSubstitutionSyntax WithStatements(ShellStatementListSyntax statements)