PowerShellSwitchStatementSyntax Class

public sealed class PowerShellSwitchStatementSyntax : ShellStatementSyntax

No documentation is available.

Inheritance
ShellStatementSyntax PowerShellSwitchStatementSyntax

Properties

NameDescription
Clauses
CloseBraceToken
CloseParenToken
Condition
OpenBraceToken
OpenParenToken
ParameterTokens
SwitchKeyword
public SyntaxList<PowerShellSwitchClauseSyntax> Clauses { get; }

No documentation is available.

CloseBraceToken

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

Property value

SyntaxToken

No documentation is available.

CloseParenToken

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

Property value

SyntaxToken

No documentation is available.

Condition

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

No documentation is available.

OpenBraceToken

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

Property value

SyntaxToken

No documentation is available.

OpenParenToken

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

Property value

SyntaxToken

No documentation is available.

ParameterTokens

Syntax.g.cs
public SyntaxTokenList ParameterTokens { get; }

Property value

SyntaxTokenList

No documentation is available.

SwitchKeyword

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxTokenList, SyntaxToken, ShellStatementListSyntax, SyntaxToken, SyntaxToken, SyntaxList<PowerShellSwitchClauseSyntax>, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithClauses(SyntaxList<PowerShellSwitchClauseSyntax>)Returns this node with clauses in place of its PowerShellSwitchStatementSyntax.Clauses.
WithCloseBraceToken(SyntaxToken)Returns this node with closeBraceToken in place of its PowerShellSwitchStatementSyntax.CloseBraceToken.
WithCloseParenToken(SyntaxToken)Returns this node with closeParenToken in place of its PowerShellSwitchStatementSyntax.CloseParenToken.
WithCondition(ShellStatementListSyntax)Returns this node with condition in place of its PowerShellSwitchStatementSyntax.Condition.
WithOpenBraceToken(SyntaxToken)Returns this node with openBraceToken in place of its PowerShellSwitchStatementSyntax.OpenBraceToken.
WithOpenParenToken(SyntaxToken)Returns this node with openParenToken in place of its PowerShellSwitchStatementSyntax.OpenParenToken.
WithParameterTokens(SyntaxTokenList)Returns this node with parameterTokens in place of its PowerShellSwitchStatementSyntax.ParameterTokens.
WithSwitchKeyword(SyntaxToken)Returns this node with switchKeyword in place of its PowerShellSwitchStatementSyntax.SwitchKeyword.

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, SyntaxTokenList, SyntaxToken, ShellStatementListSyntax, SyntaxToken, SyntaxToken, SyntaxList<PowerShellSwitchClauseSyntax>, SyntaxToken)

Syntax.g.cs

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

public PowerShellSwitchStatementSyntax Update(SyntaxToken switchKeyword, SyntaxTokenList parameterTokens, SyntaxToken openParenToken, ShellStatementListSyntax condition, SyntaxToken closeParenToken, SyntaxToken openBraceToken, SyntaxList<PowerShellSwitchClauseSyntax> clauses, SyntaxToken closeBraceToken)

Parameters

switchKeyword SyntaxToken
parameterTokens SyntaxTokenList
openParenToken SyntaxToken
condition ShellStatementListSyntax
closeParenToken SyntaxToken
openBraceToken SyntaxToken
clauses SyntaxList<PowerShellSwitchClauseSyntax>
closeBraceToken SyntaxToken

Returns

PowerShellSwitchStatementSyntax

WithClauses(SyntaxList<PowerShellSwitchClauseSyntax>)

Syntax.g.cs

WithCloseBraceToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeBraceToken in place of its PowerShellSwitchStatementSyntax.CloseBraceToken.

public PowerShellSwitchStatementSyntax WithCloseBraceToken(SyntaxToken closeBraceToken)

Parameters

closeBraceToken SyntaxToken

Returns

PowerShellSwitchStatementSyntax

WithCloseParenToken(SyntaxToken)

Syntax.g.cs

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

public PowerShellSwitchStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)

Parameters

closeParenToken SyntaxToken

Returns

PowerShellSwitchStatementSyntax

WithCondition(ShellStatementListSyntax)

Syntax.g.cs

Returns this node with condition in place of its PowerShellSwitchStatementSyntax.Condition.

WithOpenBraceToken(SyntaxToken)

Syntax.g.cs

Returns this node with openBraceToken in place of its PowerShellSwitchStatementSyntax.OpenBraceToken.

public PowerShellSwitchStatementSyntax WithOpenBraceToken(SyntaxToken openBraceToken)

Parameters

openBraceToken SyntaxToken

Returns

PowerShellSwitchStatementSyntax

WithOpenParenToken(SyntaxToken)

Syntax.g.cs

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

public PowerShellSwitchStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)

Parameters

openParenToken SyntaxToken

Returns

PowerShellSwitchStatementSyntax

WithParameterTokens(SyntaxTokenList)

Syntax.g.cs

Returns this node with parameterTokens in place of its PowerShellSwitchStatementSyntax.ParameterTokens.

public PowerShellSwitchStatementSyntax WithParameterTokens(SyntaxTokenList parameterTokens)

Parameters

parameterTokens SyntaxTokenList

Returns

PowerShellSwitchStatementSyntax

WithSwitchKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with switchKeyword in place of its PowerShellSwitchStatementSyntax.SwitchKeyword.

public PowerShellSwitchStatementSyntax WithSwitchKeyword(SyntaxToken switchKeyword)

Parameters

switchKeyword SyntaxToken

Returns

PowerShellSwitchStatementSyntax