PowerShellSwitchStatementSyntax Class
public sealed class PowerShellSwitchStatementSyntax : ShellStatementSyntaxNo documentation is available.
- Inheritance
ShellStatementSyntaxPowerShellSwitchStatementSyntax
Properties
| Name | Description |
|---|---|
| Clauses | |
| CloseBraceToken | |
| CloseParenToken | |
| Condition | |
| OpenBraceToken | |
| OpenParenToken | |
| ParameterTokens | |
| SwitchKeyword |
Clauses
Syntax.g.cspublic SyntaxList<PowerShellSwitchClauseSyntax> Clauses { get; }Property value
No documentation is available.
CloseBraceToken
Syntax.g.csCloseParenToken
Syntax.g.csCondition
Syntax.g.csOpenBraceToken
Syntax.g.csOpenParenToken
Syntax.g.csParameterTokens
Syntax.g.csSwitchKeyword
Syntax.g.csMethods
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, SyntaxTokenList, SyntaxToken, ShellStatementListSyntax, SyntaxToken, SyntaxToken, SyntaxList<PowerShellSwitchClauseSyntax>, SyntaxToken)
Syntax.g.csReturns 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
switchKeywordSyntaxTokenparameterTokensSyntaxTokenListopenParenTokenSyntaxTokenconditionShellStatementListSyntaxcloseParenTokenSyntaxTokenopenBraceTokenSyntaxTokenclausesSyntaxList<PowerShellSwitchClauseSyntax>closeBraceTokenSyntaxToken
Returns
WithClauses(SyntaxList<PowerShellSwitchClauseSyntax>)
Syntax.g.csReturns this node with clauses in place of its PowerShellSwitchStatementSyntax.Clauses.
public PowerShellSwitchStatementSyntax WithClauses(SyntaxList<PowerShellSwitchClauseSyntax> clauses)WithCloseBraceToken(SyntaxToken)
Syntax.g.csReturns this node with closeBraceToken in place of its PowerShellSwitchStatementSyntax.CloseBraceToken.
public PowerShellSwitchStatementSyntax WithCloseBraceToken(SyntaxToken closeBraceToken)WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its PowerShellSwitchStatementSyntax.CloseParenToken.
public PowerShellSwitchStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithCondition(ShellStatementListSyntax)
Syntax.g.csReturns this node with condition in place of its PowerShellSwitchStatementSyntax.Condition.
public PowerShellSwitchStatementSyntax WithCondition(ShellStatementListSyntax condition)WithOpenBraceToken(SyntaxToken)
Syntax.g.csReturns this node with openBraceToken in place of its PowerShellSwitchStatementSyntax.OpenBraceToken.
public PowerShellSwitchStatementSyntax WithOpenBraceToken(SyntaxToken openBraceToken)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its PowerShellSwitchStatementSyntax.OpenParenToken.
public PowerShellSwitchStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)WithParameterTokens(SyntaxTokenList)
Syntax.g.csReturns this node with parameterTokens in place of its PowerShellSwitchStatementSyntax.ParameterTokens.
public PowerShellSwitchStatementSyntax WithParameterTokens(SyntaxTokenList parameterTokens)WithSwitchKeyword(SyntaxToken)
Syntax.g.csReturns this node with switchKeyword in place of its PowerShellSwitchStatementSyntax.SwitchKeyword.
public PowerShellSwitchStatementSyntax WithSwitchKeyword(SyntaxToken switchKeyword)