PowerShellParamBlockSyntax Class
public sealed class PowerShellParamBlockSyntax : ShellStatementSyntaxNo documentation is available.
- Inheritance
ShellStatementSyntaxPowerShellParamBlockSyntax
Properties
| Name | Description |
|---|---|
| Attributes | |
| CloseParenToken | |
| OpenParenToken | |
| ParamKeyword | |
| Parameters |
Attributes
Syntax.g.cspublic SyntaxList<PowerShellAttributeSyntax> Attributes { get; }Property value
No documentation is available.
CloseParenToken
Syntax.g.csOpenParenToken
Syntax.g.csParamKeyword
Syntax.g.csParameters
Syntax.g.cspublic SeparatedSyntaxList<PowerShellParameterSyntax> Parameters { get; }Property value
No documentation is available.
Methods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxList<PowerShellAttributeSyntax>, SyntaxToken, SyntaxToken, SeparatedSyntaxList<PowerShellParameterSyntax>, SyntaxToken) | Returns this node with the given parts, or itself when nothing changed. |
| WithAttributes(SyntaxList<PowerShellAttributeSyntax>) | Returns this node with attributes in place of its PowerShellParamBlockSyntax.Attributes. |
| WithCloseParenToken(SyntaxToken) | Returns this node with closeParenToken in place of its PowerShellParamBlockSyntax.CloseParenToken. |
| WithOpenParenToken(SyntaxToken) | Returns this node with openParenToken in place of its PowerShellParamBlockSyntax.OpenParenToken. |
| WithParamKeyword(SyntaxToken) | Returns this node with paramKeyword in place of its PowerShellParamBlockSyntax.ParamKeyword. |
| WithParameters(SeparatedSyntaxList<PowerShellParameterSyntax>) | Returns this node with parameters in place of its PowerShellParamBlockSyntax.Parameters. |
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(SyntaxList<PowerShellAttributeSyntax>, SyntaxToken, SyntaxToken, SeparatedSyntaxList<PowerShellParameterSyntax>, SyntaxToken)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellParamBlockSyntax Update(SyntaxList<PowerShellAttributeSyntax> attributes, SyntaxToken paramKeyword, SyntaxToken openParenToken, SeparatedSyntaxList<PowerShellParameterSyntax> parameters, SyntaxToken closeParenToken)Parameters
attributesSyntaxList<PowerShellAttributeSyntax>paramKeywordSyntaxTokenopenParenTokenSyntaxTokenparametersSeparatedSyntaxList<PowerShellParameterSyntax>closeParenTokenSyntaxToken
Returns
WithAttributes(SyntaxList<PowerShellAttributeSyntax>)
Syntax.g.csReturns this node with attributes in place of its PowerShellParamBlockSyntax.Attributes.
public PowerShellParamBlockSyntax WithAttributes(SyntaxList<PowerShellAttributeSyntax> attributes)WithCloseParenToken(SyntaxToken)
Syntax.g.csReturns this node with closeParenToken in place of its PowerShellParamBlockSyntax.CloseParenToken.
public PowerShellParamBlockSyntax WithCloseParenToken(SyntaxToken closeParenToken)WithOpenParenToken(SyntaxToken)
Syntax.g.csReturns this node with openParenToken in place of its PowerShellParamBlockSyntax.OpenParenToken.
public PowerShellParamBlockSyntax WithOpenParenToken(SyntaxToken openParenToken)WithParamKeyword(SyntaxToken)
Syntax.g.csReturns this node with paramKeyword in place of its PowerShellParamBlockSyntax.ParamKeyword.
public PowerShellParamBlockSyntax WithParamKeyword(SyntaxToken paramKeyword)WithParameters(SeparatedSyntaxList<PowerShellParameterSyntax>)
Syntax.g.csReturns this node with parameters in place of its PowerShellParamBlockSyntax.Parameters.
public PowerShellParamBlockSyntax WithParameters(SeparatedSyntaxList<PowerShellParameterSyntax> parameters)