CmdParenthesizedBlockSyntax Class

Represents a parenthesized block, ( ... ), and the redirections that apply to all of it.

public sealed class CmdParenthesizedBlockSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax CmdParenthesizedBlockSyntax

Properties

NameDescription
CloseParenToken
OpenParenToken
Redirections
Statements

CloseParenToken

Syntax.g.cs
public SyntaxToken CloseParenToken { get; }

Property value

SyntaxToken

No documentation is available.

OpenParenToken

Syntax.g.cs
public SyntaxToken OpenParenToken { get; }

Property value

SyntaxToken

No documentation is available.

Redirections

Syntax.g.cs
public SyntaxList<ShellRedirectionSyntax> Redirections { get; }

No documentation is available.

Statements

Syntax.g.cs
public ShellStatementListSyntax Statements { get; }

No documentation is available.

Methods

NameDescription
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.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 overloads

Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken)

CmdParenthesizedBlockSyntax.cs

The 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
openParenToken SyntaxToken
statements ShellStatementListSyntax
closeParenToken SyntaxToken
Returns

CmdParenthesizedBlockSyntax

Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken, SyntaxList<ShellRedirectionSyntax>)

Syntax.g.cs

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

public CmdParenthesizedBlockSyntax Update(SyntaxToken openParenToken, ShellStatementListSyntax statements, SyntaxToken closeParenToken, SyntaxList<ShellRedirectionSyntax> redirections)
Parameters
openParenToken SyntaxToken
statements ShellStatementListSyntax
closeParenToken SyntaxToken
redirections SyntaxList<ShellRedirectionSyntax>
Returns

CmdParenthesizedBlockSyntax

WithCloseParenToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeParenToken in place of its CmdParenthesizedBlockSyntax.CloseParenToken.

public CmdParenthesizedBlockSyntax WithCloseParenToken(SyntaxToken closeParenToken)

Parameters

closeParenToken SyntaxToken

Returns

CmdParenthesizedBlockSyntax

WithOpenParenToken(SyntaxToken)

Syntax.g.cs

Returns this node with openParenToken in place of its CmdParenthesizedBlockSyntax.OpenParenToken.

public CmdParenthesizedBlockSyntax WithOpenParenToken(SyntaxToken openParenToken)

Parameters

openParenToken SyntaxToken

Returns

CmdParenthesizedBlockSyntax

WithRedirections(SyntaxList<ShellRedirectionSyntax>)

Syntax.g.cs

Returns this node with redirections in place of its CmdParenthesizedBlockSyntax.Redirections.

public CmdParenthesizedBlockSyntax WithRedirections(SyntaxList<ShellRedirectionSyntax> redirections)

WithStatements(ShellStatementListSyntax)

Syntax.g.cs

Returns this node with statements in place of its CmdParenthesizedBlockSyntax.Statements.

public CmdParenthesizedBlockSyntax WithStatements(ShellStatementListSyntax statements)