PowerShellUnaryExpressionSyntax Class

public sealed class PowerShellUnaryExpressionSyntax : ShellExpressionSyntax

No documentation is available.

Inheritance
ShellExpressionSyntax PowerShellUnaryExpressionSyntax

Properties

NameDescription
Operand
PostfixOperatorToken
PrefixOperatorToken
public ShellExpressionSyntax Operand { get; }

Property value

ShellExpressionSyntax

No documentation is available.

PostfixOperatorToken

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

Property value

SyntaxToken

No documentation is available.

PrefixOperatorToken

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxToken, ShellExpressionSyntax, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithOperand(ShellExpressionSyntax)Returns this node with operand in place of its PowerShellUnaryExpressionSyntax.Operand.
WithPostfixOperatorToken(SyntaxToken)Returns this node with postfixOperatorToken in place of its PowerShellUnaryExpressionSyntax.PostfixOperatorToken.
WithPrefixOperatorToken(SyntaxToken)Returns this node with prefixOperatorToken in place of its PowerShellUnaryExpressionSyntax.PrefixOperatorToken.

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

Syntax.g.cs

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

public PowerShellUnaryExpressionSyntax Update(SyntaxToken prefixOperatorToken, ShellExpressionSyntax operand, SyntaxToken postfixOperatorToken)

Parameters

prefixOperatorToken SyntaxToken
operand ShellExpressionSyntax
postfixOperatorToken SyntaxToken

Returns

PowerShellUnaryExpressionSyntax

WithOperand(ShellExpressionSyntax)

Syntax.g.cs

Returns this node with operand in place of its PowerShellUnaryExpressionSyntax.Operand.

WithPostfixOperatorToken(SyntaxToken)

Syntax.g.cs

Returns this node with postfixOperatorToken in place of its PowerShellUnaryExpressionSyntax.PostfixOperatorToken.

public PowerShellUnaryExpressionSyntax WithPostfixOperatorToken(SyntaxToken postfixOperatorToken)

Parameters

postfixOperatorToken SyntaxToken

Returns

PowerShellUnaryExpressionSyntax

WithPrefixOperatorToken(SyntaxToken)

Syntax.g.cs

Returns this node with prefixOperatorToken in place of its PowerShellUnaryExpressionSyntax.PrefixOperatorToken.

public PowerShellUnaryExpressionSyntax WithPrefixOperatorToken(SyntaxToken prefixOperatorToken)

Parameters

prefixOperatorToken SyntaxToken

Returns

PowerShellUnaryExpressionSyntax