Skip to main content

Generator

@webda/content-mapper


Interface: Generator

Defined in: packages/content-mapper/src/plan.ts:76

A unit of code generation.

Generators are intentionally independent: each returns edits, and the planner merges them. That mirrors how the existing pipeline is structured (morpher.ts composes unserializer, loadParameters, accessors, capabilities), so the same features can be ported one at a time.

Properties​

name​

name: string

Defined in: packages/content-mapper/src/plan.ts:78

Stable identifier, used in edit provenance.

Methods​

analyze()​

analyze(ctx): FileEdits[]

Defined in: packages/content-mapper/src/plan.ts:84

Produce edits for the project.

Parameters​

ctx​

AnalysisContext

typed analysis context

Returns​

FileEdits[]

edits grouped by file