1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Provenance block declaration AST types.
//!
//! The top-level `provenance` block records per-node origin metadata: each
//! `origin` entry records WHERE a document node came from (which library/package
//! and item). It is a sibling of the `assets`/`libraries`/`sections` blocks. The
//! engine preserves and validates these records — each references a node id AND a
//! declared library id that must exist — but does NOT act on the link state; the
//! `linked` flag is round-tripped for external tooling.
use BTreeMap;
use Span;
use UnknownProperty;
/// A single provenance record within a `provenance` block — one node's origin.