Skip to content

cupertino-files / SELF_CELL_MARKER

Variable: SELF_CELL_MARKER

const SELF_CELL_MARKER: "THIS_CELL" = "THIS_CELL"

Defined in: src/tst/formulas.ts:83

Marker for a reference into a table this renderer could not name.

The AST stores the target as a calc-engine owner UUID, not anything resembling a table. Pass a RenderOptions.owners registry and the reference renders as Revenue::A2; without one — or for the handful of owners a document does not resolve — it falls back to this marker, because rendering a bare A2 would read as a cell in the formula's own table and be actively wrong.

/** Stands in for a linked cell reference that carries no coordinate.

Filter and conditional-style predicates are written once and applied to many cells, so the operand under test is not an address — it is "whichever cell this rule was attached to". Apple encodes that as a LINKED_CELL_REFERENCE_NODE with a table identity but no row or column. Rendering it as A1 would name a cell the rule does not mean, so it renders as this marker unless the caller supplies the concrete address via RenderOptions.selfCell.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.