PowerShellTrapStatementSyntax Class

public sealed class PowerShellTrapStatementSyntax : ShellStatementSyntax

No documentation is available.

Inheritance
ShellStatementSyntax PowerShellTrapStatementSyntax

Properties

NameDescription
Body
TrapKeyword
TypeFilter
public PowerShellScriptBlockSyntax Body { get; }

No documentation is available.

TrapKeyword

Syntax.g.cs
public SyntaxToken TrapKeyword { get; }

Property value

SyntaxToken

No documentation is available.

TypeFilter

Syntax.g.cs
public PowerShellTypeLiteralSyntax? TypeFilter { get; }

No documentation is available.

Methods

NameDescription
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.cs
public override void Accept(ShellSyntaxVisitor visitor)
Parameters
visitor ShellSyntaxVisitor

No documentation is available.

Accept<TResult>(ShellSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor ShellSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, PowerShellTypeLiteralSyntax?, PowerShellScriptBlockSyntax)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

WithBody(PowerShellScriptBlockSyntax)

Syntax.g.cs

WithTrapKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with trapKeyword in place of its PowerShellTrapStatementSyntax.TrapKeyword.

public PowerShellTrapStatementSyntax WithTrapKeyword(SyntaxToken trapKeyword)

Parameters

trapKeyword SyntaxToken

Returns

PowerShellTrapStatementSyntax

WithTypeFilter(PowerShellTypeLiteralSyntax?)

Syntax.g.cs

Returns this node with typeFilter in place of its PowerShellTrapStatementSyntax.TypeFilter.