CmdParenthesizedBlockSyntax Class
Represents a parenthesized block, ( ... ), and the redirections that apply to all of it.
public sealed class CmdParenthesizedBlockSyntax : ShellStatementSyntax- Inheritance
ShellStatementSyntaxCmdParenthesizedBlockSyntax
Properties
| Name | Description |
|---|---|
| CloseParenToken | |
| OpenParenToken | |
| Redirections | |
| Statements |
CloseParenToken
Syntax.g.csOpenParenToken
Syntax.g.csRedirections
Syntax.g.cspublic SyntaxList<ShellRedirectionSyntax> Redirections { get; }Property value
No documentation is available.
Statements
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken) | The signature of version 3.0.0, from before CmdParenthesizedBlockSyntax.Redirections was added; the redirections are kept. |
| Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken, SyntaxList<ShellRedirectionSyntax>) | Returns this node with the given parts, or itself when nothing changed. |
| WithCloseParenToken(SyntaxToken) | Returns this node with closeParenToken in place of its CmdParenthesizedBlockSyntax.CloseParenToken. |
| WithOpenParenToken(SyntaxToken) | Returns this node with openParenToken in place of its CmdParenthesizedBlockSyntax.OpenParenToken. |
| WithRedirections(SyntaxList<ShellRedirectionSyntax>) | Returns this node with redirections in place of its CmdParenthesizedBlockSyntax.Redirections. |
| WithStatements(ShellStatementListSyntax) | Returns this node with statements in place of its CmdParenthesizedBlockSyntax.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 overloads
Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken)
CmdParenthesizedBlockSyntax.csThe signature of version 3.0.0, from before CmdParenthesizedBlockSyntax.Redirections was added; the redirections are kept.
public CmdParenthesizedBlockSyntax Update(SyntaxToken openParenToken, ShellStatementListSyntax statements, SyntaxToken closeParenToken)Parameters
openParenTokenSyntaxTokenstatementsShellStatementListSyntaxcloseParenTokenSyntaxToken
Returns
Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken, SyntaxList<ShellRedirectionSyntax>)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public CmdParenthesizedBlockSyntax Update(SyntaxToken openParenToken, ShellStatementListSyntax statements, SyntaxToken closeParenToken, SyntaxList<ShellRedirectionSyntax> redirections)Parameters
openParenTokenSyntaxTokenstatementsShellStatementListSyntaxcloseParenTokenSyntaxTokenredirectionsSyntaxList<ShellRedirectionSyntax>
Returns
WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its CmdParenthesizedBlockSyntax.CloseParenToken.
public CmdParenthesizedBlockSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its CmdParenthesizedBlockSyntax.OpenParenToken.
public CmdParenthesizedBlockSyntax WithOpenParenToken(SyntaxToken openParenToken)WithRedirections(SyntaxList<ShellRedirectionSyntax>)
Syntax.g.csReturns this node with redirections in place of its CmdParenthesizedBlockSyntax.Redirections.
public CmdParenthesizedBlockSyntax WithRedirections(SyntaxList<ShellRedirectionSyntax> redirections)WithStatements(ShellStatementListSyntax)
Syntax.g.csReturns this node with statements in place of its CmdParenthesizedBlockSyntax.Statements.
public CmdParenthesizedBlockSyntax WithStatements(ShellStatementListSyntax statements)