PowerShellLabeledStatementSyntax Class

Represents a loop preceded by a label, :outer while (...) { }.

public sealed class PowerShellLabeledStatementSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax PowerShellLabeledStatementSyntax

Properties

NameDescription
LabelThe label without its leading colon.
LabelToken
Statement

The label without its leading colon.

public string Label { get; }

Property value

string

LabelToken

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

Property value

SyntaxToken

No documentation is available.

Statement

Syntax.g.cs
public ShellStatementSyntax Statement { get; }

Property value

ShellStatementSyntax

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, ShellStatementSyntax)Returns this node with the given parts, or itself when nothing changed.
WithLabelToken(SyntaxToken)Returns this node with labelToken in place of its PowerShellLabeledStatementSyntax.LabelToken.
WithStatement(ShellStatementSyntax)Returns this node with statement in place of its PowerShellLabeledStatementSyntax.Statement.

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, ShellStatementSyntax)

Syntax.g.cs

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

WithLabelToken(SyntaxToken)

Syntax.g.cs

Returns this node with labelToken in place of its PowerShellLabeledStatementSyntax.LabelToken.

public PowerShellLabeledStatementSyntax WithLabelToken(SyntaxToken labelToken)

WithStatement(ShellStatementSyntax)

Syntax.g.cs

Returns this node with statement in place of its PowerShellLabeledStatementSyntax.Statement.