CmdGotoStatementSyntax Class

Represents a goto statement.

public sealed class CmdGotoStatementSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax CmdGotoStatementSyntax

Properties

NameDescription
GotoKeyword
LabelThe target label without any leading colon.
LabelToken

GotoKeyword

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

Property value

SyntaxToken

No documentation is available.

The target label without any leading colon.

public string Label { get; }

Property value

string

LabelToken

Syntax.g.cs
public SyntaxToken LabelToken { 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.
WithGotoKeyword(SyntaxToken)Returns this node with gotoKeyword in place of its CmdGotoStatementSyntax.GotoKeyword.
WithLabelToken(SyntaxToken)Returns this node with labelToken in place of its CmdGotoStatementSyntax.LabelToken.

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 CmdGotoStatementSyntax Update(SyntaxToken gotoKeyword, SyntaxToken labelToken)

Parameters

gotoKeyword SyntaxToken
labelToken SyntaxToken

Returns

CmdGotoStatementSyntax

WithGotoKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with gotoKeyword in place of its CmdGotoStatementSyntax.GotoKeyword.

public CmdGotoStatementSyntax WithGotoKeyword(SyntaxToken gotoKeyword)

Parameters

gotoKeyword SyntaxToken

Returns

CmdGotoStatementSyntax

WithLabelToken(SyntaxToken)

Syntax.g.cs

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

public CmdGotoStatementSyntax WithLabelToken(SyntaxToken labelToken)

Parameters

labelToken SyntaxToken

Returns

CmdGotoStatementSyntax