PosixForStatementSyntax Class

Represents a for or select loop over a word list.

public sealed class PosixForStatementSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax PosixForStatementSyntax

Properties

NameDescription
AdditionalVariableTokens
Body
DoKeyword
DoneKeyword
InKeyword
IsSelect
Items
Keyword
ListTerminatorToken
VariableName
VariableToken

AdditionalVariableTokens

Syntax.g.cs
public SyntaxTokenList AdditionalVariableTokens { get; }

Property value

SyntaxTokenList

No documentation is available.

public ShellStatementListSyntax Body { 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.

InKeyword

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

Property value

SyntaxToken

No documentation is available.

public bool IsSelect { get; }

Property value

bool

No documentation is available.

public SyntaxList<ShellWordSyntax> Items { get; }

No documentation is available.

public SyntaxToken Keyword { get; }

Property value

SyntaxToken

No documentation is available.

ListTerminatorToken

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

Property value

SyntaxToken

No documentation is available.

public string VariableName { get; }

Property value

string

No documentation is available.

VariableToken

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, ShellStatementListSyntax, SyntaxToken)The signature of version 3.0.0, from before PosixForStatementSyntax.AdditionalVariableTokens was added; they are kept.
Update(SyntaxToken, SyntaxToken, SyntaxTokenList, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, ShellStatementListSyntax, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithAdditionalVariableTokens(SyntaxTokenList)Returns this node with additionalVariableTokens in place of its PosixForStatementSyntax.AdditionalVariableTokens.
WithBody(ShellStatementListSyntax)Returns this node with body in place of its PosixForStatementSyntax.Body.
WithDoKeyword(SyntaxToken)Returns this node with doKeyword in place of its PosixForStatementSyntax.DoKeyword.
WithDoneKeyword(SyntaxToken)Returns this node with doneKeyword in place of its PosixForStatementSyntax.DoneKeyword.
WithInKeyword(SyntaxToken)Returns this node with inKeyword in place of its PosixForStatementSyntax.InKeyword.
WithItems(SyntaxList<ShellWordSyntax>)Returns this node with items in place of its PosixForStatementSyntax.Items.
WithKeyword(SyntaxToken)Returns this node with keyword in place of its PosixForStatementSyntax.Keyword.
WithListTerminatorToken(SyntaxToken)Returns this node with listTerminatorToken in place of its PosixForStatementSyntax.ListTerminatorToken.
WithVariableToken(SyntaxToken)Returns this node with variableToken in place of its PosixForStatementSyntax.VariableToken.

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 overloads

Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, ShellStatementListSyntax, SyntaxToken)

PosixForStatementSyntax.cs

The signature of version 3.0.0, from before PosixForStatementSyntax.AdditionalVariableTokens was added; they are kept.

public PosixForStatementSyntax Update(SyntaxToken keyword, SyntaxToken variableToken, SyntaxToken inKeyword, SyntaxList<ShellWordSyntax> items, SyntaxToken listTerminatorToken, SyntaxToken doKeyword, ShellStatementListSyntax body, SyntaxToken doneKeyword)
Parameters
keyword SyntaxToken
variableToken SyntaxToken
inKeyword SyntaxToken
items SyntaxList<ShellWordSyntax>
listTerminatorToken SyntaxToken
doKeyword SyntaxToken
body ShellStatementListSyntax
doneKeyword SyntaxToken
Returns

PosixForStatementSyntax

Update(SyntaxToken, SyntaxToken, SyntaxTokenList, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, ShellStatementListSyntax, SyntaxToken)

Syntax.g.cs

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

public PosixForStatementSyntax Update(SyntaxToken keyword, SyntaxToken variableToken, SyntaxTokenList additionalVariableTokens, SyntaxToken inKeyword, SyntaxList<ShellWordSyntax> items, SyntaxToken listTerminatorToken, SyntaxToken doKeyword, ShellStatementListSyntax body, SyntaxToken doneKeyword)
Parameters
keyword SyntaxToken
variableToken SyntaxToken
additionalVariableTokens SyntaxTokenList
inKeyword SyntaxToken
items SyntaxList<ShellWordSyntax>
listTerminatorToken SyntaxToken
doKeyword SyntaxToken
body ShellStatementListSyntax
doneKeyword SyntaxToken
Returns

PosixForStatementSyntax

WithAdditionalVariableTokens(SyntaxTokenList)

Syntax.g.cs

Returns this node with additionalVariableTokens in place of its PosixForStatementSyntax.AdditionalVariableTokens.

public PosixForStatementSyntax WithAdditionalVariableTokens(SyntaxTokenList additionalVariableTokens)

Parameters

additionalVariableTokens SyntaxTokenList

Returns

PosixForStatementSyntax

WithBody(ShellStatementListSyntax)

Syntax.g.cs

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

WithDoKeyword(SyntaxToken)

Syntax.g.cs

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

public PosixForStatementSyntax WithDoKeyword(SyntaxToken doKeyword)

Parameters

doKeyword SyntaxToken

Returns

PosixForStatementSyntax

WithDoneKeyword(SyntaxToken)

Syntax.g.cs

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

public PosixForStatementSyntax WithDoneKeyword(SyntaxToken doneKeyword)

Parameters

doneKeyword SyntaxToken

Returns

PosixForStatementSyntax

WithInKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with inKeyword in place of its PosixForStatementSyntax.InKeyword.

public PosixForStatementSyntax WithInKeyword(SyntaxToken inKeyword)

Parameters

inKeyword SyntaxToken

Returns

PosixForStatementSyntax

WithItems(SyntaxList<ShellWordSyntax>)

Syntax.g.cs

Returns this node with items in place of its PosixForStatementSyntax.Items.

WithKeyword(SyntaxToken)

Syntax.g.cs

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

public PosixForStatementSyntax WithKeyword(SyntaxToken keyword)

Parameters

keyword SyntaxToken

Returns

PosixForStatementSyntax

WithListTerminatorToken(SyntaxToken)

Syntax.g.cs

Returns this node with listTerminatorToken in place of its PosixForStatementSyntax.ListTerminatorToken.

public PosixForStatementSyntax WithListTerminatorToken(SyntaxToken listTerminatorToken)

Parameters

listTerminatorToken SyntaxToken

Returns

PosixForStatementSyntax

WithVariableToken(SyntaxToken)

Syntax.g.cs

Returns this node with variableToken in place of its PosixForStatementSyntax.VariableToken.

public PosixForStatementSyntax WithVariableToken(SyntaxToken variableToken)

Parameters

variableToken SyntaxToken

Returns

PosixForStatementSyntax