Table of Contents

Class DescribeToolResult

Namespace
RDCore.SDK.Assistant
Assembly
RDCore.SDK.dll

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

ToolExpressionDescription

Range

The name or expression the position is in; null when nothing is described.

public TextRange? Range { get; init; }

Property Value

TextRange?

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

ToolSymbolDescription

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

workspaceRoot string

The root of the workspace, which the paths are said from.

described DescribeResult

The answer.

Returns

DescribeToolResult