Class LiteralExpressionStaticSemantics
- Namespace
- RDCore.SDK.Semantics.Static.Expressions
- Assembly
- RDCore.SDK.dll
public record LiteralExpressionStaticSemantics : IStaticSemantics, IEquatable<LiteralExpressionStaticSemantics>
- Inheritance
-
LiteralExpressionStaticSemantics
- Implements
- Inherited Members
Properties
Instance
public static LiteralExpressionStaticSemantics Instance { get; }
Property Value
Methods
DetermineDeclaredType(StaticEvaluationContext, ExpressionNode, params VBType[])
MS-VBAL 5.6.5 Literal Expressions (static semantics) The declared type of a literal expression is that of the specified token.
public StaticSemanticsEvaluationResult DetermineDeclaredType(StaticEvaluationContext context, ExpressionNode expression, params VBType[] operandDeclaredTypes)
Parameters
contextStaticEvaluationContextThe compile-time context this expression is evaluated against.
expressionExpressionNodeThe expression node being evaluated.
operandDeclaredTypesVBType[]Ignored: a literal has no operands, its type is that of its own token.
Returns
Exceptions
- ArgumentException
expressionis not a LiteralExpressionNode.