PowerShellCatchClauseSyntax Class
public sealed class PowerShellCatchClauseSyntax : ShellSyntaxNodeNo documentation is available.
- Inheritance
ShellSyntaxNodePowerShellCatchClauseSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| CatchKeyword | |
| TypeFilters |
Body
Syntax.g.csCatchKeyword
Syntax.g.csTypeFilters
Syntax.g.cspublic SeparatedSyntaxList<PowerShellTypeLiteralSyntax> TypeFilters { get; }Property value
No documentation is available.
Methods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, SeparatedSyntaxList<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 PowerShellCatchClauseSyntax.Body. |
| WithCatchKeyword(SyntaxToken) | Returns this node with catchKeyword in place of its PowerShellCatchClauseSyntax.CatchKeyword. |
| WithTypeFilters(SeparatedSyntaxList<PowerShellTypeLiteralSyntax>) | Returns this node with typeFilters in place of its PowerShellCatchClauseSyntax.TypeFilters. |
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, SeparatedSyntaxList<PowerShellTypeLiteralSyntax>, PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellCatchClauseSyntax Update(SyntaxToken catchKeyword, SeparatedSyntaxList<PowerShellTypeLiteralSyntax> typeFilters, PowerShellScriptBlockSyntax body)Parameters
catchKeywordSyntaxTokentypeFiltersSeparatedSyntaxList<PowerShellTypeLiteralSyntax>bodyPowerShellScriptBlockSyntax
Returns
WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellCatchClauseSyntax.Body.
public PowerShellCatchClauseSyntax WithBody(PowerShellScriptBlockSyntax body)WithCatchKeyword(SyntaxToken)
Syntax.g.csReturns this node with catchKeyword in place of its PowerShellCatchClauseSyntax.CatchKeyword.
public PowerShellCatchClauseSyntax WithCatchKeyword(SyntaxToken catchKeyword)WithTypeFilters(SeparatedSyntaxList<PowerShellTypeLiteralSyntax>)
Syntax.g.csReturns this node with typeFilters in place of its PowerShellCatchClauseSyntax.TypeFilters.
public PowerShellCatchClauseSyntax WithTypeFilters(SeparatedSyntaxList<PowerShellTypeLiteralSyntax> typeFilters)