PowerShellParameterSyntax Class

public sealed class PowerShellParameterSyntax : ShellSyntaxNode

No documentation is available.

Inheritance
ShellSyntaxNode PowerShellParameterSyntax

Properties

NameDescription
Attributes
DefaultValue
EqualsToken
Variable

Attributes

Syntax.g.cs
public SyntaxList<PowerShellAttributeSyntax> Attributes { get; }

No documentation is available.

DefaultValue

Syntax.g.cs
public ShellSyntaxNode? DefaultValue { get; }

Property value

ShellSyntaxNode?

No documentation is available.

EqualsToken

Syntax.g.cs
public SyntaxToken EqualsToken { 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(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.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(SyntaxList<PowerShellAttributeSyntax>, ShellExpressionSyntax, SyntaxToken, ShellSyntaxNode?)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

WithAttributes(SyntaxList<PowerShellAttributeSyntax>)

Syntax.g.cs

Returns this node with attributes in place of its PowerShellParameterSyntax.Attributes.

WithDefaultValue(ShellSyntaxNode?)

Syntax.g.cs

Returns this node with defaultValue in place of its PowerShellParameterSyntax.DefaultValue.

public PowerShellParameterSyntax WithDefaultValue(ShellSyntaxNode? defaultValue)

Parameters

defaultValue ShellSyntaxNode?

Returns

PowerShellParameterSyntax

WithEqualsToken(SyntaxToken)

Syntax.g.cs

Returns this node with equalsToken in place of its PowerShellParameterSyntax.EqualsToken.

public PowerShellParameterSyntax WithEqualsToken(SyntaxToken equalsToken)

Parameters

equalsToken SyntaxToken

Returns

PowerShellParameterSyntax

WithVariable(ShellExpressionSyntax)

Syntax.g.cs

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

public PowerShellParameterSyntax WithVariable(ShellExpressionSyntax variable)