CmdElseClauseSyntax Class

public sealed class CmdElseClauseSyntax : ShellSyntaxNode

No documentation is available.

Inheritance
ShellSyntaxNode CmdElseClauseSyntax

Properties

NameDescription
Body
ElseKeyword
public ShellStatementSyntax Body { get; }

Property value

ShellStatementSyntax

No documentation is available.

ElseKeyword

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

Property value

SyntaxToken

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.
WithBody(ShellStatementSyntax)Returns this node with body in place of its CmdElseClauseSyntax.Body.
WithElseKeyword(SyntaxToken)Returns this node with elseKeyword in place of its CmdElseClauseSyntax.ElseKeyword.

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.

public CmdElseClauseSyntax Update(SyntaxToken elseKeyword, ShellStatementSyntax body)

Parameters

elseKeyword SyntaxToken
body ShellStatementSyntax

Returns

CmdElseClauseSyntax

WithBody(ShellStatementSyntax)

Syntax.g.cs

Returns this node with body in place of its CmdElseClauseSyntax.Body.

WithElseKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with elseKeyword in place of its CmdElseClauseSyntax.ElseKeyword.

public CmdElseClauseSyntax WithElseKeyword(SyntaxToken elseKeyword)

Parameters

elseKeyword SyntaxToken

Returns

CmdElseClauseSyntax