PowerShellForEachStatementSyntax Class
public sealed class PowerShellForEachStatementSyntax : ShellStatementSyntaxNo documentation is available.
- Inheritance
ShellStatementSyntaxPowerShellForEachStatementSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| CloseParenToken | |
| Collection | |
| ForEachKeyword | |
| InKeyword | |
| OpenParenToken | |
| Variable |
Body
Syntax.g.csCloseParenToken
Syntax.g.csCollection
Syntax.g.csForEachKeyword
Syntax.g.csInKeyword
Syntax.g.csOpenParenToken
Syntax.g.csVariable
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, ShellExpressionSyntax, SyntaxToken, ShellSyntaxNode, SyntaxToken, PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellForEachStatementSyntax Update(SyntaxToken forEachKeyword, SyntaxToken openParenToken, ShellExpressionSyntax variable, SyntaxToken inKeyword, ShellSyntaxNode collection, SyntaxToken closeParenToken, PowerShellScriptBlockSyntax body)Parameters
forEachKeywordSyntaxTokenopenParenTokenSyntaxTokenvariableShellExpressionSyntaxinKeywordSyntaxTokencollectionShellSyntaxNodecloseParenTokenSyntaxTokenbodyPowerShellScriptBlockSyntax
Returns
WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellForEachStatementSyntax.Body.
public PowerShellForEachStatementSyntax WithBody(PowerShellScriptBlockSyntax body)WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its PowerShellForEachStatementSyntax.CloseParenToken.
public PowerShellForEachStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithCollection(ShellSyntaxNode)
Syntax.g.csReturns this node with collection in place of its PowerShellForEachStatementSyntax.Collection.
public PowerShellForEachStatementSyntax WithCollection(ShellSyntaxNode collection)WithForEachKeyword(SyntaxToken)
Syntax.g.csReturns this node with forEachKeyword in place of its PowerShellForEachStatementSyntax.ForEachKeyword.
public PowerShellForEachStatementSyntax WithForEachKeyword(SyntaxToken forEachKeyword)WithInKeyword(SyntaxToken)
Syntax.g.csReturns this node with inKeyword in place of its PowerShellForEachStatementSyntax.InKeyword.
public PowerShellForEachStatementSyntax WithInKeyword(SyntaxToken inKeyword)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its PowerShellForEachStatementSyntax.OpenParenToken.
public PowerShellForEachStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)WithVariable(ShellExpressionSyntax)
Syntax.g.csReturns this node with variable in place of its PowerShellForEachStatementSyntax.Variable.
public PowerShellForEachStatementSyntax WithVariable(ShellExpressionSyntax variable)