Class SimpleNameExpressionStaticSemantics
- Namespace
- RDCore.SDK.Semantics.Static.Expressions
- Assembly
- RDCore.SDK.dll
MS-VBAL 5.6.10 Simple Name Expressions (static semantics). The declared type of a simple name expression is the declared type of the entity its identifier resolves to (RD-VBAL §2.3.1.2 for the resolution order itself).
public sealed record SimpleNameExpressionStaticSemantics : IStaticSemantics, IEquatable<SimpleNameExpressionStaticSemantics>
- Inheritance
-
SimpleNameExpressionStaticSemantics
- Implements
- Inherited Members
Properties
Instance
public static SimpleNameExpressionStaticSemantics Instance { get; }
Property Value
Methods
DetermineDeclaredType(StaticEvaluationContext, ExpressionNode, params VBType[])
Determines the declared type of a SimpleNameExpressionNode from the entity its
identifier resolves to in context.
public StaticSemanticsEvaluationResult DetermineDeclaredType(StaticEvaluationContext context, ExpressionNode expression, params VBType[] operandDeclaredTypes)
Parameters
contextStaticEvaluationContextThe compile-time context this expression is evaluated against.
expressionExpressionNodeThe SimpleNameExpressionNode being evaluated.
operandDeclaredTypesVBType[]Unused — a simple name has no operands.
Returns
Exceptions
- ArgumentException
expressionis not a SimpleNameExpressionNode.