API ReferenceFunctions
recordOrigin
function recordOrigin(
ctx,
node,
path): Origin;Defined in: packages/core/src/ir.ts:104
Record node's origin from a document path, resolving its source range.
Idempotent: an origin already on the node wins, so the earliest (pre-mutation)
mapping is preserved.
Parameters
ctx
node
object