Class BinaryLogicalOperatorStaticSemantics
Uses pattern-matching rules to encapsulate binary logical operator static semantics as defined in MS-VBAL 5.6.9.8.
public record BinaryLogicalOperatorStaticSemantics : StaticSemantics, IEquatable<StaticSemantics>, IStaticSemantics, IEquatable<BinaryLogicalOperatorStaticSemantics>
- Inheritance
-
BinaryLogicalOperatorStaticSemantics
- Implements
- Inherited Members
Methods
DetermineDeclaredType(ISymbolResolver, ExpressionNode, params 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.
public override StaticSemanticsEvaluationResult DetermineDeclaredType(ISymbolResolver resolver, ExpressionNode expression, params VBType[] operandDeclaredTypes)
Parameters
resolverISymbolResolverThe static context containing the available static memory space.
expressionExpressionNodeThe expression node being evaluated.
operandDeclaredTypesVBType[]The declared type of the operands.
Returns
DetermineOperatorStaticType(ExpressionNode, VBType, 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 virtual StaticSemanticsEvaluationResult DetermineOperatorStaticType(ExpressionNode expression, VBType lhs, VBType rhs)
Parameters
expressionExpressionNodeThe expression node being evaluated.
lhsVBTypeThe declared type of the LHS operand.
rhsVBTypeThe declared type of the RHS operand.