Skip to main content

Module resolution

Module resolution 

Source
Expand description

The language-neutral symbol-resolution result schema.

A resolution report says which source definition each reference in a repository denotes, and how certain that answer is. It contains no parser and no filesystem behavior: a producer states facts through ResolutionReportBuilder, and every report — built in process or decoded from JSON — passes one shared validator before it exists.

Identifiers are dense positions in sorted slices, so a consumer indexes the report directly, and reordering the filesystem walk that produced it cannot change a single identifier.

Structs§

CandidateInput
One candidate a writer offers for a reference.
ResolutionCandidate
One definition a reference may denote.
ResolutionRecord
The complete answer for one reference.
ResolutionReport
A complete, validated resolution result.
ResolutionReportBuilder
The fallible writer every report passes through.
ResolutionReportLimits
How many units, definitions, references, and resolution records one report may contain.
ResolutionUnit
One compilation context a report resolves names inside.
SourcePosition
A zero-based point in one source file.
SourceSpan
A half-open range in one normalized repository-relative file.
SymbolDefinition
One definition site inside one resolution unit.
SymbolReference
One reference site inside one resolution unit.

Enums§

ReferenceKind
The closed vocabulary of references a report emits.
ReportCollection
Which report collection a structural rule names.
ResolutionCertainty
How much a candidate is known.
ResolutionGap
Why a reference did not resolve, or resolved only to possibilities.
ResolutionReportError
A rejected resolution report, or a rejected write into one.
ResolutionTier
Which mechanism produced a report.
SymbolKind
The closed vocabulary of definitions a report emits.

Type Aliases§

DefinitionHandle
A definition a builder holds. Clone, never Copy, and never serialized.
DefinitionId
A definition’s dense identifier within one report.
ReferenceHandle
A reference a builder holds. Clone, never Copy, and never serialized.
ReferenceId
A reference’s dense identifier within one report.
ResolutionUnitHandle
A unit a builder holds. Clone, never Copy, and never serialized.
ResolutionUnitId
A resolution unit’s dense identifier within one report.