SourceMapping
Defined in: packages/core/src/sourcemap.ts:18
Source maps are reconstructed at emit time rather than threaded through the
passes. Provenance lives in the typed IR's ctx.origins side-table: passes
pin each original job/step/fragment's origin before mutating, and carry it
onto clones/derived nodes, so a node that a macro moves still points at its
true source. We never re-derive provenance here — we re-parse the emitted body
for line numbers and resolve each node through the IR.
makeResolveOrigin(ctx) is the single resolution seam: it returns the lone
(path) => Range | undefined function buildSourceMap resolves through.
Properties
generated
generated: object;Defined in: packages/core/src/sourcemap.ts:20
1-based line in the generated workflow (including any banner).
line
line: number;original
original: Position;Defined in: packages/core/src/sourcemap.ts:24
1-based position in the original .actio.yml.
path?
optional path?: string;Defined in: packages/core/src/sourcemap.ts:26
Dotted data path of the node — a debugging aid and IR hook.
source
source: number;Defined in: packages/core/src/sourcemap.ts:22
Index into SourceMap.sources.