pub enum Precedent {
Cell(CellRef),
Range(RangeRef),
Name(String),
Unresolved(String),
}Expand description
One resolved precedent of a formula cell: what a single Ref in the
formula points at, after sheet/name resolution.
extract_refs yields one Ref per
reference occurrence (duplicates preserved); the graph maps each to one of
these. Unresolved keeps a reference that has no
concrete target (unknown sheet/name, unparseable formula) so the recalc
engine can still emit the right Sheets error.
Variants§
Cell(CellRef)
A single cell (A1 on the formula’s own sheet, or Sheet1!A1).
Range(RangeRef)
A rectangular range (A1:D4, Sheet1!A1:B2) — a compressed range node.
Name(String)
A workbook-scoped named range, by its case-folded name. The name’s current target (cell or range) supplies the transitive edges.
Unresolved(String)
A reference that did not resolve to a concrete target: an unknown sheet or name, or a formula that failed to parse. Carries the canonical reference text for diagnostics; it produces no dirty-propagation edge.