Class ExpressionDescription
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
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
semanticsModuleSemanticsDtoWhat the environment host found out about the module.
positionSourcePositionThe 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
factExpressionFactDtoThe fact, as it travels from the host; its constant value is written as a RunValue (ToRunValue(VBTypedValue)).