Unify layered provenance history

This commit is contained in:
2026-09-06 21:09:52 +00:00
parent ef0e6078f7
commit 26cece6d53
9 changed files with 347 additions and 48 deletions

View File

@@ -150,7 +150,8 @@ type Diagnostic struct {
}
// Origin describes where an effective definition came from. Multiple locations
// represent a composite origin.
// represent a composite origin; resolution origins are synthetic and identify their
// operation instead of a file location.
type Origin struct {
Layer Layer
Locations []Location
@@ -164,8 +165,9 @@ type FieldInfo struct {
Origin Origin
}
// Change describes a definition or application-resolution operation. Historical
// values are intentionally not exposed by this record.
// Change describes a definition or application-resolution operation. Path can name
// an ancestor operation affecting the queried descendant. Historical values are
// intentionally not exposed by this record.
type Change struct {
Path Path
Origin Origin