Table of Contents

Class VBUnaryOperatorExpressionNode

Namespace
RDCore.SDK.Model.AST.Expressions
Assembly
RDCore.SDK.dll

A prefix VBOperatorExpression that accepts a single operand.

public record VBUnaryOperatorExpressionNode : VBOperatorExpression, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<ExpressionNode>, IEquatable<VBOperatorExpression>, IEquatable<VBUnaryOperatorExpressionNode>
Inheritance
VBUnaryOperatorExpressionNode
Implements
Inherited Members

Remarks

Unless specified otherwise in a derived node type, MS-VBAL 5.6.9 Operator Expressions defines the static and run-time semantics of this node.

Constructors

VBUnaryOperatorExpressionNode(string, SyntaxNodeId, SourceLocation, ExpressionNode)

Deserialization path: Operand is what the JSON actually carries now (see SyntaxNodeJson) — Children is redundant with it and gets omitted on write, so it can't be relied on to arrive from the wire.

[JsonConstructor]
public VBUnaryOperatorExpressionNode(string Token, SyntaxNodeId Identity, SourceLocation Location, ExpressionNode Operand)

Parameters

Token string
Identity SyntaxNodeId
Location SourceLocation
Operand ExpressionNode

VBUnaryOperatorExpressionNode(string, SyntaxNodeId, SourceLocation, ImmutableArray<SyntaxNode>)

A prefix VBOperatorExpression that accepts a single operand.

public VBUnaryOperatorExpressionNode(string Token, SyntaxNodeId Identity, SourceLocation Location, ImmutableArray<SyntaxNode> Children)

Parameters

Token string

The OperatorSymbol token associated with this operator expression.

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

Location SourceLocation

The Location (holds the document Uri and a Range) of the bound expression.

Children ImmutableArray<SyntaxNode>

Remarks

Unless specified otherwise in a derived node type, MS-VBAL 5.6.9 Operator Expressions defines the static and run-time semantics of this node.

Properties

Operand

The operand — Children[0].

public ExpressionNode Operand { get; }

Property Value

ExpressionNode

Token

The OperatorSymbol token associated with this operator expression.

public string Token { get; init; }

Property Value

string