PowerShellParameterSyntax Class
public sealed class PowerShellParameterSyntax : ShellSyntaxNodeNo documentation is available.
- Inheritance
ShellSyntaxNodePowerShellParameterSyntax
Properties
| Name | Description |
|---|---|
| Attributes | |
| DefaultValue | |
| EqualsToken | |
| Variable |
Attributes
Syntax.g.cspublic SyntaxList<PowerShellAttributeSyntax> Attributes { get; }Property value
No documentation is available.
DefaultValue
Syntax.g.csEqualsToken
Syntax.g.csVariable
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(ShellSyntaxVisitor) | |
| Accept<TResult>(ShellSyntaxVisitor<TResult>) | |
| Update(SyntaxList<PowerShellAttributeSyntax>, ShellExpressionSyntax, SyntaxToken, ShellSyntaxNode?) | Returns this node with the given parts, or itself when nothing changed. |
| WithAttributes(SyntaxList<PowerShellAttributeSyntax>) | Returns this node with attributes in place of its PowerShellParameterSyntax.Attributes. |
| WithDefaultValue(ShellSyntaxNode?) | Returns this node with defaultValue in place of its PowerShellParameterSyntax.DefaultValue. |
| WithEqualsToken(SyntaxToken) | Returns this node with equalsToken in place of its PowerShellParameterSyntax.EqualsToken. |
| WithVariable(ShellExpressionSyntax) | Returns this node with variable in place of its PowerShellParameterSyntax.Variable. |
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>, ShellExpressionSyntax, SyntaxToken, ShellSyntaxNode?)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public PowerShellParameterSyntax Update(SyntaxList<PowerShellAttributeSyntax> attributes, ShellExpressionSyntax variable, SyntaxToken equalsToken, ShellSyntaxNode? defaultValue)Parameters
attributesSyntaxList<PowerShellAttributeSyntax>variableShellExpressionSyntaxequalsTokenSyntaxTokendefaultValueShellSyntaxNode?
Returns
WithAttributes(SyntaxList<PowerShellAttributeSyntax>)
Syntax.g.csReturns this node with attributes in place of its PowerShellParameterSyntax.Attributes.
public PowerShellParameterSyntax WithAttributes(SyntaxList<PowerShellAttributeSyntax> attributes)WithDefaultValue(ShellSyntaxNode?)
Syntax.g.csReturns this node with defaultValue in place of its PowerShellParameterSyntax.DefaultValue.
public PowerShellParameterSyntax WithDefaultValue(ShellSyntaxNode? defaultValue)WithEqualsToken(SyntaxToken)
Syntax.g.csReturns this node with equalsToken in place of its PowerShellParameterSyntax.EqualsToken.
public PowerShellParameterSyntax WithEqualsToken(SyntaxToken equalsToken)WithVariable(ShellExpressionSyntax)
Syntax.g.csReturns this node with variable in place of its PowerShellParameterSyntax.Variable.
public PowerShellParameterSyntax WithVariable(ShellExpressionSyntax variable)