PowerShellTrapStatementSyntax Class
public sealed class PowerShellTrapStatementSyntax : ShellStatementSyntaxNo documentation is available.
- Inheritance
ShellStatementSyntaxPowerShellTrapStatementSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| TrapKeyword | |
| TypeFilter |
Body
Syntax.g.csTrapKeyword
Syntax.g.csTypeFilter
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, PowerShellTypeLiteralSyntax?, PowerShellScriptBlockSyntax) | Returns this node with the given parts, or itself when nothing changed. |
| WithBody(PowerShellScriptBlockSyntax) | Returns this node with body in place of its PowerShellTrapStatementSyntax.Body. |
| WithTrapKeyword(SyntaxToken) | Returns this node with trapKeyword in place of its PowerShellTrapStatementSyntax.TrapKeyword. |
| WithTypeFilter(PowerShellTypeLiteralSyntax?) | Returns this node with typeFilter in place of its PowerShellTrapStatementSyntax.TypeFilter. |
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, PowerShellTypeLiteralSyntax?, PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellTrapStatementSyntax Update(SyntaxToken trapKeyword, PowerShellTypeLiteralSyntax? typeFilter, PowerShellScriptBlockSyntax body)Parameters
trapKeywordSyntaxTokentypeFilterPowerShellTypeLiteralSyntax?bodyPowerShellScriptBlockSyntax
Returns
WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellTrapStatementSyntax.Body.
public PowerShellTrapStatementSyntax WithBody(PowerShellScriptBlockSyntax body)WithTrapKeyword(SyntaxToken)
Syntax.g.csReturns this node with trapKeyword in place of its PowerShellTrapStatementSyntax.TrapKeyword.
public PowerShellTrapStatementSyntax WithTrapKeyword(SyntaxToken trapKeyword)WithTypeFilter(PowerShellTypeLiteralSyntax?)
Syntax.g.csReturns this node with typeFilter in place of its PowerShellTrapStatementSyntax.TypeFilter.
public PowerShellTrapStatementSyntax WithTypeFilter(PowerShellTypeLiteralSyntax? typeFilter)