Skip to main content

Module provenance

Module provenance 

Source
Expand description

Producer, origin, source descriptors, and source maps.

These answer the trust questions a compiler artifact must answer: which tool produced it, what the source was, and which canonical field came from which source record by what kind of mapping.

Structs§

Producer
The tool and build that produced the package.
SourceDescriptor
A declared source artifact, referenced from source maps and diagnostics by its id. (sources[] in the package.)
SourceMapEntry
One element_path -> source mapping.
SourceRef
A pointer into one source artifact: where a canonical field came from.

Enums§

Confidence
How confident the source map entry is.
MappingKind
How a canonical field relates to its source value.
Origin
Where the package came from. Internally tagged on kind in JSON, so a reader distinguishes an in-memory model, a single text file (with or without retained source), a folder dataset, a partially decoded binary, a derived product of a lowering pass, or a composite of several sources.