PowerShellForStatementSyntax Class
public sealed class PowerShellForStatementSyntax : ShellStatementSyntaxNo documentation is available.
- Inheritance
ShellStatementSyntaxPowerShellForStatementSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| CloseParenToken | |
| Condition | |
| FirstSemicolonToken | |
| ForKeyword | |
| Initializer | |
| Iterator | |
| OpenParenToken | |
| SecondSemicolonToken |
Body
Syntax.g.csCloseParenToken
Syntax.g.csCondition
Syntax.g.csFirstSemicolonToken
Syntax.g.csForKeyword
Syntax.g.csInitializer
Syntax.g.csIterator
Syntax.g.csOpenParenToken
Syntax.g.csSecondSemicolonToken
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, ShellSyntaxNode?, SyntaxToken, ShellSyntaxNode?, SyntaxToken, ShellSyntaxNode?, SyntaxToken, PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellForStatementSyntax Update(SyntaxToken forKeyword, SyntaxToken openParenToken, ShellSyntaxNode? initializer, SyntaxToken firstSemicolonToken, ShellSyntaxNode? condition, SyntaxToken secondSemicolonToken, ShellSyntaxNode? iterator, SyntaxToken closeParenToken, PowerShellScriptBlockSyntax body)Parameters
forKeywordSyntaxTokenopenParenTokenSyntaxTokeninitializerShellSyntaxNode?firstSemicolonTokenSyntaxTokenconditionShellSyntaxNode?secondSemicolonTokenSyntaxTokeniteratorShellSyntaxNode?closeParenTokenSyntaxTokenbodyPowerShellScriptBlockSyntax
Returns
WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellForStatementSyntax.Body.
public PowerShellForStatementSyntax WithBody(PowerShellScriptBlockSyntax body)WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its PowerShellForStatementSyntax.CloseParenToken.
public PowerShellForStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithCondition(ShellSyntaxNode?)
Syntax.g.csReturns this node with condition in place of its PowerShellForStatementSyntax.Condition.
public PowerShellForStatementSyntax WithCondition(ShellSyntaxNode? condition)WithFirstSemicolonToken(SyntaxToken)
Syntax.g.csReturns this node with firstSemicolonToken in place of its PowerShellForStatementSyntax.FirstSemicolonToken.
public PowerShellForStatementSyntax WithFirstSemicolonToken(SyntaxToken firstSemicolonToken)WithForKeyword(SyntaxToken)
Syntax.g.csReturns this node with forKeyword in place of its PowerShellForStatementSyntax.ForKeyword.
public PowerShellForStatementSyntax WithForKeyword(SyntaxToken forKeyword)WithInitializer(ShellSyntaxNode?)
Syntax.g.csReturns this node with initializer in place of its PowerShellForStatementSyntax.Initializer.
public PowerShellForStatementSyntax WithInitializer(ShellSyntaxNode? initializer)WithIterator(ShellSyntaxNode?)
Syntax.g.csReturns this node with iterator in place of its PowerShellForStatementSyntax.Iterator.
public PowerShellForStatementSyntax WithIterator(ShellSyntaxNode? iterator)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its PowerShellForStatementSyntax.OpenParenToken.
public PowerShellForStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)WithSecondSemicolonToken(SyntaxToken)
Syntax.g.csReturns this node with secondSemicolonToken in place of its PowerShellForStatementSyntax.SecondSemicolonToken.
public PowerShellForStatementSyntax WithSecondSemicolonToken(SyntaxToken secondSemicolonToken)