Class BinaryAdditionOperatorStaticSemantics
MS-VBAL 5.6.9.3.2 Binary '+' Operator (static semantics)
public sealed record BinaryAdditionOperatorStaticSemantics : BinaryArithmeticOperatorStaticSemantics, IEquatable<StaticSemantics>, IStaticSemantics, IEquatable<BinaryArithmeticOperatorStaticSemantics>, IEquatable<BinaryAdditionOperatorStaticSemantics>
- Inheritance
-
BinaryAdditionOperatorStaticSemantics
- Implements
- Inherited Members
Constructors
BinaryAdditionOperatorStaticSemantics()
MS-VBAL 5.6.9.3.2 Binary '+' Operator (static semantics)
public BinaryAdditionOperatorStaticSemantics()
Methods
DetermineOperatorStaticType(StaticEvaluationContext, ExpressionNode, VBType, VBType)
Determines a static VBType from specified operands.
protected override StaticSemanticsEvaluationResult DetermineOperatorStaticType(StaticEvaluationContext context, ExpressionNode expression, VBType lhs, VBType rhs)
Parameters
contextStaticEvaluationContextThe compile-time context this expression is evaluated against.
expressionExpressionNodeThe expression node being evaluated.
lhsVBTypeThe declared type of the left-hand side (LHS) operand involved in the evaluation.
rhsVBTypeThe declared type of the right-hand side (RHS) operand involved in the evaluation.
Returns
- StaticSemanticsEvaluationResult
A StaticSemanticsEvaluationResult encapsulating the resulting VBType if successful, or VBCompileErrorInfo error metadata otherwise.