PowerShellElseClauseSyntax Class
public sealed class PowerShellElseClauseSyntax : ShellSyntaxNodeNo documentation is available.
- Inheritance
ShellSyntaxNodePowerShellElseClauseSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| ElseKeyword |
Body
Syntax.g.csElseKeyword
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(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 PowerShellElseClauseSyntax.Body. |
| WithElseKeyword(SyntaxToken) | Returns this node with elseKeyword in place of its PowerShellElseClauseSyntax.ElseKeyword. |
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, PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellElseClauseSyntax Update(SyntaxToken elseKeyword, PowerShellScriptBlockSyntax body)WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellElseClauseSyntax.Body.
public PowerShellElseClauseSyntax WithBody(PowerShellScriptBlockSyntax body)WithElseKeyword(SyntaxToken)
Syntax.g.csReturns this node with elseKeyword in place of its PowerShellElseClauseSyntax.ElseKeyword.
public PowerShellElseClauseSyntax WithElseKeyword(SyntaxToken elseKeyword)