PosixWhileStatementSyntax Class
Represents a while or until loop.
public sealed class PosixWhileStatementSyntax : ShellStatementSyntax- Inheritance
ShellStatementSyntaxPosixWhileStatementSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| Condition | |
| DoKeyword | |
| DoneKeyword | |
| IsUntil | Returns true for an until loop, which repeats while the condition fails. |
| Keyword |
Body
Syntax.g.csCondition
Syntax.g.csDoKeyword
Syntax.g.csDoneKeyword
Syntax.g.csIsUntil
PosixWhileStatementSyntax.csKeyword
Syntax.g.csMethods
| Name | Description |
|---|---|
| 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.cspublic override void Accept(ShellSyntaxVisitor visitor)Parameters
visitorShellSyntaxVisitor
No documentation is available.
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Syntax.g.cspublic override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxToken, ShellStatementListSyntax, SyntaxToken, ShellStatementListSyntax, SyntaxToken)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PosixWhileStatementSyntax Update(SyntaxToken keyword, ShellStatementListSyntax condition, SyntaxToken doKeyword, ShellStatementListSyntax body, SyntaxToken doneKeyword)Parameters
keywordSyntaxTokenconditionShellStatementListSyntaxdoKeywordSyntaxTokenbodyShellStatementListSyntaxdoneKeywordSyntaxToken
Returns
WithBody(ShellStatementListSyntax)
Syntax.g.csReturns this node with body in place of its PosixWhileStatementSyntax.Body.
public PosixWhileStatementSyntax WithBody(ShellStatementListSyntax body)WithCondition(ShellStatementListSyntax)
Syntax.g.csReturns this node with condition in place of its PosixWhileStatementSyntax.Condition.
public PosixWhileStatementSyntax WithCondition(ShellStatementListSyntax condition)WithDoKeyword(SyntaxToken)
Syntax.g.csReturns this node with doKeyword in place of its PosixWhileStatementSyntax.DoKeyword.
public PosixWhileStatementSyntax WithDoKeyword(SyntaxToken doKeyword)WithDoneKeyword(SyntaxToken)
Syntax.g.csReturns this node with doneKeyword in place of its PosixWhileStatementSyntax.DoneKeyword.
public PosixWhileStatementSyntax WithDoneKeyword(SyntaxToken doneKeyword)WithKeyword(SyntaxToken)
Syntax.g.csReturns this node with keyword in place of its PosixWhileStatementSyntax.Keyword.
public PosixWhileStatementSyntax WithKeyword(SyntaxToken keyword)