PowerShellNamedBlockSyntax Class
public sealed class PowerShellNamedBlockSyntax : ShellStatementSyntaxNo documentation is available.
- Inheritance
ShellStatementSyntaxPowerShellNamedBlockSyntax
Properties
| Name | Description |
|---|---|
| Body | |
| Keyword |
Body
Syntax.g.csKeyword
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(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 PowerShellNamedBlockSyntax.Body. |
| WithKeyword(SyntaxToken) | Returns this node with keyword in place of its PowerShellNamedBlockSyntax.Keyword. |
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, PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellNamedBlockSyntax Update(SyntaxToken keyword, PowerShellScriptBlockSyntax body)WithBody(PowerShellScriptBlockSyntax)
Syntax.g.csReturns this node with body in place of its PowerShellNamedBlockSyntax.Body.
public PowerShellNamedBlockSyntax WithBody(PowerShellScriptBlockSyntax body)WithKeyword(SyntaxToken)
Syntax.g.csReturns this node with keyword in place of its PowerShellNamedBlockSyntax.Keyword.
public PowerShellNamedBlockSyntax WithKeyword(SyntaxToken keyword)