CmdLabelStatementSyntax Class

Represents a label, :name, which is a jump target for goto and call.

public sealed class CmdLabelStatementSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax CmdLabelStatementSyntax

Properties

NameDescription
ColonToken
NameThe label name without its leading colon.
NameToken

ColonToken

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

Property value

SyntaxToken

No documentation is available.

The label name without its leading colon.

public string Name { get; }

Property value

string

NameToken

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithColonToken(SyntaxToken)Returns this node with colonToken in place of its CmdLabelStatementSyntax.ColonToken.
WithNameToken(SyntaxToken)Returns this node with nameToken in place of its CmdLabelStatementSyntax.NameToken.

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

Syntax.g.cs

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

public CmdLabelStatementSyntax Update(SyntaxToken colonToken, SyntaxToken nameToken)

Parameters

colonToken SyntaxToken
nameToken SyntaxToken

Returns

CmdLabelStatementSyntax

WithColonToken(SyntaxToken)

Syntax.g.cs

Returns this node with colonToken in place of its CmdLabelStatementSyntax.ColonToken.

public CmdLabelStatementSyntax WithColonToken(SyntaxToken colonToken)

Parameters

colonToken SyntaxToken

Returns

CmdLabelStatementSyntax

WithNameToken(SyntaxToken)

Syntax.g.cs

Returns this node with nameToken in place of its CmdLabelStatementSyntax.NameToken.

public CmdLabelStatementSyntax WithNameToken(SyntaxToken nameToken)

Parameters

nameToken SyntaxToken

Returns

CmdLabelStatementSyntax