PowerShellElseIfClauseSyntax Class
public sealed class PowerShellElseIfClauseSyntax : ShellSyntaxNodeNo documentation is available.
- Inheritance
ShellSyntaxNodePowerShellElseIfClauseSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| CloseParenToken | |
| Condition | |
| ElseIfKeyword | |
| OpenParenToken |
Body
Syntax.g.csCloseParenToken
Syntax.g.csCondition
Syntax.g.csElseIfKeyword
Syntax.g.csOpenParenToken
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, SyntaxToken, ShellStatementListSyntax, SyntaxToken, PowerShellScriptBlockSyntax) | Returns this node with the given parts, or itself when nothing changed. |
| WithBody(PowerShellScriptBlockSyntax) | Returns this node with body in place of its PowerShellElseIfClauseSyntax.Body. |
| WithCloseParenToken(SyntaxToken) | Returns this node with closeParenToken in place of its PowerShellElseIfClauseSyntax.CloseParenToken. |
| WithCondition(ShellStatementListSyntax) | Returns this node with condition in place of its PowerShellElseIfClauseSyntax.Condition. |
| WithElseIfKeyword(SyntaxToken) | Returns this node with elseIfKeyword in place of its PowerShellElseIfClauseSyntax.ElseIfKeyword. |
| WithOpenParenToken(SyntaxToken) | Returns this node with openParenToken in place of its PowerShellElseIfClauseSyntax.OpenParenToken. |
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, SyntaxToken, ShellStatementListSyntax, SyntaxToken, PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellElseIfClauseSyntax Update(SyntaxToken elseIfKeyword, SyntaxToken openParenToken, ShellStatementListSyntax condition, SyntaxToken closeParenToken, PowerShellScriptBlockSyntax body)Parameters
elseIfKeywordSyntaxTokenopenParenTokenSyntaxTokenconditionShellStatementListSyntaxcloseParenTokenSyntaxTokenbodyPowerShellScriptBlockSyntax
Returns
WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellElseIfClauseSyntax.Body.
public PowerShellElseIfClauseSyntax WithBody(PowerShellScriptBlockSyntax body)WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its PowerShellElseIfClauseSyntax.CloseParenToken.
public PowerShellElseIfClauseSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithCondition(ShellStatementListSyntax)
Syntax.g.csReturns this node with condition in place of its PowerShellElseIfClauseSyntax.Condition.
public PowerShellElseIfClauseSyntax WithCondition(ShellStatementListSyntax condition)WithElseIfKeyword(SyntaxToken)
Syntax.g.csReturns this node with elseIfKeyword in place of its PowerShellElseIfClauseSyntax.ElseIfKeyword.
public PowerShellElseIfClauseSyntax WithElseIfKeyword(SyntaxToken elseIfKeyword)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its PowerShellElseIfClauseSyntax.OpenParenToken.
public PowerShellElseIfClauseSyntax WithOpenParenToken(SyntaxToken openParenToken)