PosixIfStatementSyntax Class

public sealed class PosixIfStatementSyntax : ShellStatementSyntax

No documentation is available.

Inheritance
ShellStatementSyntax PosixIfStatementSyntax

Properties

NameDescription
Body
Condition
ElifClauses
ElseClause
FiKeyword
IfKeyword
ThenKeyword
public ShellStatementListSyntax Body { get; }

No documentation is available.

Condition

Syntax.g.cs
public ShellStatementListSyntax Condition { get; }

No documentation is available.

ElifClauses

Syntax.g.cs
public SyntaxList<PosixElifClauseSyntax> ElifClauses { get; }

No documentation is available.

ElseClause

Syntax.g.cs
public PosixElseClauseSyntax? ElseClause { get; }

No documentation is available.

FiKeyword

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

Property value

SyntaxToken

No documentation is available.

IfKeyword

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

Property value

SyntaxToken

No documentation is available.

ThenKeyword

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken, ShellStatementListSyntax, SyntaxList<PosixElifClauseSyntax>, PosixElseClauseSyntax?, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithBody(ShellStatementListSyntax)Returns this node with body in place of its PosixIfStatementSyntax.Body.
WithCondition(ShellStatementListSyntax)Returns this node with condition in place of its PosixIfStatementSyntax.Condition.
WithElifClauses(SyntaxList<PosixElifClauseSyntax>)Returns this node with elifClauses in place of its PosixIfStatementSyntax.ElifClauses.
WithElseClause(PosixElseClauseSyntax?)Returns this node with elseClause in place of its PosixIfStatementSyntax.ElseClause.
WithFiKeyword(SyntaxToken)Returns this node with fiKeyword in place of its PosixIfStatementSyntax.FiKeyword.
WithIfKeyword(SyntaxToken)Returns this node with ifKeyword in place of its PosixIfStatementSyntax.IfKeyword.
WithThenKeyword(SyntaxToken)Returns this node with thenKeyword in place of its PosixIfStatementSyntax.ThenKeyword.

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, ShellStatementListSyntax, SyntaxToken, ShellStatementListSyntax, SyntaxList<PosixElifClauseSyntax>, PosixElseClauseSyntax?, SyntaxToken)

Syntax.g.cs

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

WithBody(ShellStatementListSyntax)

Syntax.g.cs

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

WithCondition(ShellStatementListSyntax)

Syntax.g.cs

Returns this node with condition in place of its PosixIfStatementSyntax.Condition.

public PosixIfStatementSyntax WithCondition(ShellStatementListSyntax condition)

WithElifClauses(SyntaxList<PosixElifClauseSyntax>)

Syntax.g.cs

Returns this node with elifClauses in place of its PosixIfStatementSyntax.ElifClauses.

public PosixIfStatementSyntax WithElifClauses(SyntaxList<PosixElifClauseSyntax> elifClauses)

WithElseClause(PosixElseClauseSyntax?)

Syntax.g.cs

Returns this node with elseClause in place of its PosixIfStatementSyntax.ElseClause.

public PosixIfStatementSyntax WithElseClause(PosixElseClauseSyntax? elseClause)

WithFiKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with fiKeyword in place of its PosixIfStatementSyntax.FiKeyword.

public PosixIfStatementSyntax WithFiKeyword(SyntaxToken fiKeyword)

Parameters

fiKeyword SyntaxToken

Returns

PosixIfStatementSyntax

WithIfKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with ifKeyword in place of its PosixIfStatementSyntax.IfKeyword.

public PosixIfStatementSyntax WithIfKeyword(SyntaxToken ifKeyword)

Parameters

ifKeyword SyntaxToken

Returns

PosixIfStatementSyntax

WithThenKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with thenKeyword in place of its PosixIfStatementSyntax.ThenKeyword.

public PosixIfStatementSyntax WithThenKeyword(SyntaxToken thenKeyword)

Parameters

thenKeyword SyntaxToken

Returns

PosixIfStatementSyntax