Table of Contents

Class ExpressionDescription

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.dll

The facts of an expression, as rdcore/semantics/describe answers them.

public sealed record ExpressionDescription : DescribedExpression, IEquatable<DescribedExpression>, IEquatable<ExpressionDescription>
Inheritance
ExpressionDescription
Implements
Inherited Members

Properties

Range

Where the expression is written.

public SourceRange Range { get; init; }

Property Value

SourceRange

Methods

At(ModuleSemanticsDto, SourcePosition)

Describes the innermost expression of a module that is written at a position: of the expressions whose range holds it, the one that starts last, and of those the one that ends first.

public static ExpressionDescription? At(ModuleSemanticsDto semantics, SourcePosition position)

Parameters

semantics ModuleSemanticsDto

What the environment host found out about the module.

position SourcePosition

The position, in the module's text.

Returns

ExpressionDescription

The expression's description; null when no expression of a procedure of the module is written there.

Of(ExpressionFactDto)

Describes the fact the environment host has of an expression.

public static ExpressionDescription Of(ExpressionFactDto fact)

Parameters

fact ExpressionFactDto

The fact, as it travels from the host; its constant value is written as a RunValue (ToRunValue(VBTypedValue)).

Returns

ExpressionDescription