ShellCommandSubstitutionSyntax Class

Represents a command substitution such as $(...) or a backquoted command.

public sealed class ShellCommandSubstitutionSyntax : ShellWordPartSyntax
Inheritance
ShellWordPartSyntax ShellCommandSubstitutionSyntax

Properties

NameDescription
CloseToken
IsBackquotedReturns true for the legacy backquoted form.
OpenToken
Statements

CloseToken

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

Property value

SyntaxToken

No documentation is available.

Returns true for the legacy backquoted form.

public bool IsBackquoted { get; }

Property value

bool

OpenToken

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

Property value

SyntaxToken

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)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.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(SyntaxToken, ShellStatementListSyntax, SyntaxToken)

Syntax.g.cs

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

public ShellCommandSubstitutionSyntax Update(SyntaxToken openToken, ShellStatementListSyntax statements, SyntaxToken closeToken)

WithCloseToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeToken in place of its ShellCommandSubstitutionSyntax.CloseToken.

public ShellCommandSubstitutionSyntax WithCloseToken(SyntaxToken closeToken)

Parameters

closeToken SyntaxToken

Returns

ShellCommandSubstitutionSyntax

WithOpenToken(SyntaxToken)

Syntax.g.cs

Returns this node with openToken in place of its ShellCommandSubstitutionSyntax.OpenToken.

public ShellCommandSubstitutionSyntax WithOpenToken(SyntaxToken openToken)

WithStatements(ShellStatementListSyntax)

Syntax.g.cs

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