PosixWhileStatementSyntax Class

Represents a while or until loop.

public sealed class PosixWhileStatementSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax PosixWhileStatementSyntax

Properties

NameDescription
Body
Condition
DoKeyword
DoneKeyword
IsUntilReturns true for an until loop, which repeats while the condition fails.
Keyword
public ShellStatementListSyntax Body { get; }

No documentation is available.

Condition

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

No documentation is available.

DoKeyword

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

Property value

SyntaxToken

No documentation is available.

DoneKeyword

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

Property value

SyntaxToken

No documentation is available.

Returns true for an until loop, which repeats while the condition fails.

public bool IsUntil { get; }

Property value

bool

public SyntaxToken Keyword { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken, ShellStatementListSyntax, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithBody(ShellStatementListSyntax)Returns this node with body in place of its PosixWhileStatementSyntax.Body.
WithCondition(ShellStatementListSyntax)Returns this node with condition in place of its PosixWhileStatementSyntax.Condition.
WithDoKeyword(SyntaxToken)Returns this node with doKeyword in place of its PosixWhileStatementSyntax.DoKeyword.
WithDoneKeyword(SyntaxToken)Returns this node with doneKeyword in place of its PosixWhileStatementSyntax.DoneKeyword.
WithKeyword(SyntaxToken)Returns this node with keyword in place of its PosixWhileStatementSyntax.Keyword.

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, 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 PosixWhileStatementSyntax.Body.

WithCondition(ShellStatementListSyntax)

Syntax.g.cs

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

public PosixWhileStatementSyntax WithCondition(ShellStatementListSyntax condition)

WithDoKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with doKeyword in place of its PosixWhileStatementSyntax.DoKeyword.

public PosixWhileStatementSyntax WithDoKeyword(SyntaxToken doKeyword)

Parameters

doKeyword SyntaxToken

Returns

PosixWhileStatementSyntax

WithDoneKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with doneKeyword in place of its PosixWhileStatementSyntax.DoneKeyword.

public PosixWhileStatementSyntax WithDoneKeyword(SyntaxToken doneKeyword)

Parameters

doneKeyword SyntaxToken

Returns

PosixWhileStatementSyntax

WithKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with keyword in place of its PosixWhileStatementSyntax.Keyword.

public PosixWhileStatementSyntax WithKeyword(SyntaxToken keyword)

Parameters

keyword SyntaxToken

Returns

PosixWhileStatementSyntax