Table of Contents

Class BinaryRelationalOperatorStaticSemantics

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

Uses pattern-matching rules to encapsulate binary relational operator static semantics as defined in MS-VBAL 5.6.9.5.

public record BinaryRelationalOperatorStaticSemantics : StaticSemantics, IEquatable<StaticSemantics>, IStaticSemantics, IEquatable<BinaryRelationalOperatorStaticSemantics>
Inheritance
BinaryRelationalOperatorStaticSemantics
Implements
Inherited Members

Methods

DetermineDeclaredType(ISymbolResolver, BoundExpression, params VBType[])

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

public override StaticSemanticsEvaluationResult DetermineDeclaredType(ISymbolResolver resolver, BoundExpression expression, params VBType[] operandDeclaredTypes)

Parameters

resolver ISymbolResolver

The static context containing the available static memory space.

expression BoundExpression

The expression node being evaluated.

operandDeclaredTypes VBType[]

The declared type of the operands.

Returns

StaticSemanticsEvaluationResult

DetermineOperatorStaticType(BoundExpression, VBType, VBType)

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

protected virtual StaticSemanticsEvaluationResult DetermineOperatorStaticType(BoundExpression expression, VBType lhs, VBType rhs)

Parameters

expression BoundExpression

The expression node being evaluated.

lhs VBType

The declared type of the LHS operand.

rhs VBType

The declared type of the RHS operand.

Returns

StaticSemanticsEvaluationResult