Table of Contents

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

LiteralExpressionStaticSemantics

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

context StaticEvaluationContext

The compile-time context this expression is evaluated against.

expression ExpressionNode

The expression node being evaluated.

operandDeclaredTypes VBType[]

Ignored: a literal has no operands, its type is that of its own token.

Returns

StaticSemanticsEvaluationResult

Exceptions

ArgumentException

expression is not a LiteralExpressionNode.