Table of Contents

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

SimpleNameExpressionStaticSemantics

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

context StaticEvaluationContext

The compile-time context this expression is evaluated against.

expression ExpressionNode

The SimpleNameExpressionNode being evaluated.

operandDeclaredTypes VBType[]

Unused — a simple name has no operands.

Returns

StaticSemanticsEvaluationResult

Exceptions

ArgumentException

expression is not a SimpleNameExpressionNode.