Table of Contents

Class UnaryNegationOperatorStaticSemantics

Namespace
RDCore.SDK.Semantics.Static.Operators
Assembly
RDCore.SDK.dll

MS-VBAL 5.6.9.3.1 Unary '-' Operator (static semantics)

public sealed record UnaryNegationOperatorStaticSemantics : UnaryArithmeticOperatorStaticSemantics, IEquatable<StaticSemantics>, IStaticSemantics, IEquatable<UnaryArithmeticOperatorStaticSemantics>, IEquatable<UnaryNegationOperatorStaticSemantics>
Inheritance
UnaryNegationOperatorStaticSemantics
Implements
Inherited Members

Methods

DetermineOperatorStaticType(StaticEvaluationContext, ExpressionNode, VBType)

MS-VBAL 5.6.9.3 Arithmetic Operators (static semantics) The operator has the declared type returned by this method, based on the declared type of its operands.

protected override StaticSemanticsEvaluationResult DetermineOperatorStaticType(StaticEvaluationContext context, ExpressionNode expression, VBType operand)

Parameters

context StaticEvaluationContext
expression ExpressionNode

The expression node being evaluated.

operand VBType

The declared type of the operand.

Returns

StaticSemanticsEvaluationResult