CmdForStatementSyntax Class
Represents a for loop, including the /d, /r, /l, and /f forms.
public sealed class CmdForStatementSyntax : ShellStatementSyntax- Inheritance
ShellStatementSyntaxCmdForStatementSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| CloseParenToken | |
| DoKeyword | |
| ForKeyword | |
| InKeyword | |
| Items | |
| OpenParenToken | |
| SwitchArguments | |
| SwitchToken | |
| VariableName | The loop variable name without its leading percent signs. |
| VariableToken |
Body
Syntax.g.csCloseParenToken
Syntax.g.csDoKeyword
Syntax.g.csForKeyword
Syntax.g.csInKeyword
Syntax.g.csItems
Syntax.g.csOpenParenToken
Syntax.g.csSwitchArguments
Syntax.g.cspublic SyntaxList<ShellWordSyntax> SwitchArguments { get; }Property value
No documentation is available.
SwitchToken
Syntax.g.csVariableName
CmdForStatementSyntax.csVariableToken
Syntax.g.csMethods
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, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxList<ShellWordSyntax>, SyntaxToken, SyntaxToken, ShellStatementSyntax)
Syntax.g.csReturns 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
forKeywordSyntaxTokenswitchTokenSyntaxTokenswitchArgumentsSyntaxList<ShellWordSyntax>variableTokenSyntaxTokeninKeywordSyntaxTokenopenParenTokenSyntaxTokenitemsSyntaxList<ShellWordSyntax>closeParenTokenSyntaxTokendoKeywordSyntaxTokenbodyShellStatementSyntax
Returns
WithBody(ShellStatementSyntax)
Syntax.g.csReturns this node with body in place of its CmdForStatementSyntax.Body.
public CmdForStatementSyntax WithBody(ShellStatementSyntax body)WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its CmdForStatementSyntax.CloseParenToken.
public CmdForStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithDoKeyword(SyntaxToken)
Syntax.g.csReturns this node with doKeyword in place of its CmdForStatementSyntax.DoKeyword.
public CmdForStatementSyntax WithDoKeyword(SyntaxToken doKeyword)WithForKeyword(SyntaxToken)
Syntax.g.csReturns this node with forKeyword in place of its CmdForStatementSyntax.ForKeyword.
public CmdForStatementSyntax WithForKeyword(SyntaxToken forKeyword)WithInKeyword(SyntaxToken)
Syntax.g.csReturns this node with inKeyword in place of its CmdForStatementSyntax.InKeyword.
public CmdForStatementSyntax WithInKeyword(SyntaxToken inKeyword)WithItems(SyntaxList<ShellWordSyntax>)
Syntax.g.csReturns this node with items in place of its CmdForStatementSyntax.Items.
public CmdForStatementSyntax WithItems(SyntaxList<ShellWordSyntax> items)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its CmdForStatementSyntax.OpenParenToken.
public CmdForStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)WithSwitchArguments(SyntaxList<ShellWordSyntax>)
Syntax.g.csReturns this node with switchArguments in place of its CmdForStatementSyntax.SwitchArguments.
public CmdForStatementSyntax WithSwitchArguments(SyntaxList<ShellWordSyntax> switchArguments)WithSwitchToken(SyntaxToken)
Syntax.g.csReturns this node with switchToken in place of its CmdForStatementSyntax.SwitchToken.
public CmdForStatementSyntax WithSwitchToken(SyntaxToken switchToken)WithVariableToken(SyntaxToken)
Syntax.g.csReturns this node with variableToken in place of its CmdForStatementSyntax.VariableToken.
public CmdForStatementSyntax WithVariableToken(SyntaxToken variableToken)