Class DescribeToolResult
The structured result of DescribeAt: a DescribeResult, with 1-based positions and paths from the workspace root.
public sealed record DescribeToolResult : IEquatable<DescribeToolResult>
- Inheritance
-
DescribeToolResult
- Implements
- Inherited Members
Properties
Expression
The facts of the innermost expression whose location holds the position; null when the host has none.
public ToolExpressionDescription? Expression { get; init; }
Property Value
Range
The name or expression the position is in; null when nothing is described.
public TextRange? Range { get; init; }
Property Value
Symbol
The symbol the name at the position binds to; null when no name is there, or it binds to nothing known.
public ToolSymbolDescription? Symbol { get; init; }
Property Value
Methods
Of(string, DescribeResult)
The result of the tool for an answer of rdcore/semantics/describe.
public static DescribeToolResult Of(string workspaceRoot, DescribeResult described)
Parameters
workspaceRootstringThe root of the workspace, which the paths are said from.
describedDescribeResultThe answer.