PowerShellForEachStatementSyntax Class

public sealed class PowerShellForEachStatementSyntax : ShellStatementSyntax

No documentation is available.

Inheritance
ShellStatementSyntax PowerShellForEachStatementSyntax

Properties

NameDescription
Body
CloseParenToken
Collection
ForEachKeyword
InKeyword
OpenParenToken
Variable
public PowerShellScriptBlockSyntax Body { get; }

No documentation is available.

CloseParenToken

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

Property value

SyntaxToken

No documentation is available.

Collection

Syntax.g.cs
public ShellSyntaxNode Collection { get; }

Property value

ShellSyntaxNode

No documentation is available.

ForEachKeyword

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

Property value

SyntaxToken

No documentation is available.

InKeyword

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

Property value

SyntaxToken

No documentation is available.

OpenParenToken

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

Property value

SyntaxToken

No documentation is available.

Variable

Syntax.g.cs
public ShellExpressionSyntax Variable { get; }

Property value

ShellExpressionSyntax

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, ShellExpressionSyntax, SyntaxToken, ShellSyntaxNode, SyntaxToken, PowerShellScriptBlockSyntax)Returns this node with the given parts, or itself when nothing changed.
WithBody(PowerShellScriptBlockSyntax)Returns this node with body in place of its PowerShellForEachStatementSyntax.Body.
WithCloseParenToken(SyntaxToken)Returns this node with closeParenToken in place of its PowerShellForEachStatementSyntax.CloseParenToken.
WithCollection(ShellSyntaxNode)Returns this node with collection in place of its PowerShellForEachStatementSyntax.Collection.
WithForEachKeyword(SyntaxToken)Returns this node with forEachKeyword in place of its PowerShellForEachStatementSyntax.ForEachKeyword.
WithInKeyword(SyntaxToken)Returns this node with inKeyword in place of its PowerShellForEachStatementSyntax.InKeyword.
WithOpenParenToken(SyntaxToken)Returns this node with openParenToken in place of its PowerShellForEachStatementSyntax.OpenParenToken.
WithVariable(ShellExpressionSyntax)Returns this node with variable in place of its PowerShellForEachStatementSyntax.Variable.

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, ShellExpressionSyntax, SyntaxToken, ShellSyntaxNode, SyntaxToken, PowerShellScriptBlockSyntax)

Syntax.g.cs

Returns 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

forEachKeyword SyntaxToken
openParenToken SyntaxToken
variable ShellExpressionSyntax
inKeyword SyntaxToken
collection ShellSyntaxNode
closeParenToken SyntaxToken
body PowerShellScriptBlockSyntax

Returns

PowerShellForEachStatementSyntax

WithBody(PowerShellScriptBlockSyntax)

Syntax.g.cs

WithCloseParenToken(SyntaxToken)

Syntax.g.cs

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

public PowerShellForEachStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken)

Parameters

closeParenToken SyntaxToken

Returns

PowerShellForEachStatementSyntax

WithCollection(ShellSyntaxNode)

Syntax.g.cs

Returns this node with collection in place of its PowerShellForEachStatementSyntax.Collection.

public PowerShellForEachStatementSyntax WithCollection(ShellSyntaxNode collection)

WithForEachKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with forEachKeyword in place of its PowerShellForEachStatementSyntax.ForEachKeyword.

public PowerShellForEachStatementSyntax WithForEachKeyword(SyntaxToken forEachKeyword)

Parameters

forEachKeyword SyntaxToken

Returns

PowerShellForEachStatementSyntax

WithInKeyword(SyntaxToken)

Syntax.g.cs

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

public PowerShellForEachStatementSyntax WithInKeyword(SyntaxToken inKeyword)

WithOpenParenToken(SyntaxToken)

Syntax.g.cs

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

public PowerShellForEachStatementSyntax WithOpenParenToken(SyntaxToken openParenToken)

Parameters

openParenToken SyntaxToken

Returns

PowerShellForEachStatementSyntax

WithVariable(ShellExpressionSyntax)

Syntax.g.cs

Returns this node with variable in place of its PowerShellForEachStatementSyntax.Variable.