CmdForStatementSyntax Class

Represents a for loop, including the /d, /r, /l, and /f forms.

public sealed class CmdForStatementSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax CmdForStatementSyntax

Properties

NameDescription
Body
CloseParenToken
DoKeyword
ForKeyword
InKeyword
Items
OpenParenToken
SwitchArguments
SwitchToken
VariableNameThe loop variable name without its leading percent signs.
VariableToken
public ShellStatementSyntax Body { get; }

Property value

ShellStatementSyntax

No documentation is available.

CloseParenToken

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

Property value

SyntaxToken

No documentation is available.

DoKeyword

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

Property value

SyntaxToken

No documentation is available.

ForKeyword

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

Property value

SyntaxToken

No documentation is available.

InKeyword

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

Property value

SyntaxToken

No documentation is available.

public SyntaxList<ShellWordSyntax> Items { get; }

No documentation is available.

OpenParenToken

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

Property value

SyntaxToken

No documentation is available.

SwitchArguments

Syntax.g.cs
public SyntaxList<ShellWordSyntax> SwitchArguments { get; }

No documentation is available.

SwitchToken

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

Property value

SyntaxToken

No documentation is available.

The loop variable name without its leading percent signs.

public string VariableName { get; }

Property value

string

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, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, 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 CmdForStatementSyntax.Body.
WithCloseParenToken(SyntaxToken)Returns this node with closeParenToken in place of its CmdForStatementSyntax.CloseParenToken.
WithDoKeyword(SyntaxToken)Returns this node with doKeyword in place of its CmdForStatementSyntax.DoKeyword.
WithForKeyword(SyntaxToken)Returns this node with forKeyword in place of its CmdForStatementSyntax.ForKeyword.
WithInKeyword(SyntaxToken)Returns this node with inKeyword in place of its CmdForStatementSyntax.InKeyword.
WithItems(SyntaxList<ShellWordSyntax>)Returns this node with items in place of its CmdForStatementSyntax.Items.
WithOpenParenToken(SyntaxToken)Returns this node with openParenToken in place of its CmdForStatementSyntax.OpenParenToken.
WithSwitchArguments(SyntaxList<ShellWordSyntax>)Returns this node with switchArguments in place of its CmdForStatementSyntax.SwitchArguments.
WithSwitchToken(SyntaxToken)Returns this node with switchToken in place of its CmdForStatementSyntax.SwitchToken.
WithVariableToken(SyntaxToken)Returns this node with variableToken in place of its CmdForStatementSyntax.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(SyntaxToken, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, ShellStatementSyntax)

Syntax.g.cs

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

public CmdForStatementSyntax Update(SyntaxToken forKeyword, SyntaxToken switchToken, SyntaxList<ShellWordSyntax> switchArguments, SyntaxToken variableToken, SyntaxToken inKeyword, SyntaxToken openParenToken, SyntaxList<ShellWordSyntax> items, SyntaxToken closeParenToken, SyntaxToken doKeyword, ShellStatementSyntax body)

Parameters

forKeyword SyntaxToken
switchToken SyntaxToken
switchArguments SyntaxList<ShellWordSyntax>
variableToken SyntaxToken
inKeyword SyntaxToken
openParenToken SyntaxToken
items SyntaxList<ShellWordSyntax>
closeParenToken SyntaxToken
doKeyword SyntaxToken
body ShellStatementSyntax

Returns

CmdForStatementSyntax

WithBody(ShellStatementSyntax)

Syntax.g.cs

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

WithCloseParenToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeParenToken in place of its CmdForStatementSyntax.CloseParenToken.

public CmdForStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)

Parameters

closeParenToken SyntaxToken

Returns

CmdForStatementSyntax

WithDoKeyword(SyntaxToken)

Syntax.g.cs

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

public CmdForStatementSyntax WithDoKeyword(SyntaxToken doKeyword)

Parameters

doKeyword SyntaxToken

Returns

CmdForStatementSyntax

WithForKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with forKeyword in place of its CmdForStatementSyntax.ForKeyword.

public CmdForStatementSyntax WithForKeyword(SyntaxToken forKeyword)

Parameters

forKeyword SyntaxToken

Returns

CmdForStatementSyntax

WithInKeyword(SyntaxToken)

Syntax.g.cs

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

public CmdForStatementSyntax WithInKeyword(SyntaxToken inKeyword)

Parameters

inKeyword SyntaxToken

Returns

CmdForStatementSyntax

WithItems(SyntaxList<ShellWordSyntax>)

Syntax.g.cs

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

WithOpenParenToken(SyntaxToken)

Syntax.g.cs

Returns this node with openParenToken in place of its CmdForStatementSyntax.OpenParenToken.

public CmdForStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)

Parameters

openParenToken SyntaxToken

Returns

CmdForStatementSyntax

WithSwitchArguments(SyntaxList<ShellWordSyntax>)

Syntax.g.cs

Returns this node with switchArguments in place of its CmdForStatementSyntax.SwitchArguments.

public CmdForStatementSyntax WithSwitchArguments(SyntaxList<ShellWordSyntax> switchArguments)

Parameters

switchArguments SyntaxList<ShellWordSyntax>

Returns

CmdForStatementSyntax

WithSwitchToken(SyntaxToken)

Syntax.g.cs

Returns this node with switchToken in place of its CmdForStatementSyntax.SwitchToken.

public CmdForStatementSyntax WithSwitchToken(SyntaxToken switchToken)

Parameters

switchToken SyntaxToken

Returns

CmdForStatementSyntax

WithVariableToken(SyntaxToken)

Syntax.g.cs

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

public CmdForStatementSyntax WithVariableToken(SyntaxToken variableToken)

Parameters

variableToken SyntaxToken

Returns

CmdForStatementSyntax