Expand description
MutationRegistry: Central registry for MutationSpec → Mutation conversion
The Registry pattern distributes the conversion logic that was previously
concentrated in BlueprintExecutor::convert_and_apply() (2,400+ lines)
into separate Converter implementations.
§Architecture
MutationSpec
│
▼ registry.convert(spec)
MutationRegistry
├─ converters: HashMap<kind, Box<dyn MutationConverter>>
│
▼ find converter by spec.kind_name()
MutationConverter (trait)
│
▼ convert(spec) → Box<dyn Mutation>
Mutation
│
▼ apply(file) → changesModules§
- converters
- Individual MutationConverter implementations
Structs§
- Apply
Result - Result of applying a mutation
- Mutation
Registry - Central registry for MutationSpec → Mutation conversion
- Resolved
Mutation - A mutation resolved with its target file information.
Enums§
- Convert
Error - Error type for conversion operations
Traits§
- Mutation
Converter - Trait for converting MutationSpec to Mutation and applying it
Functions§
- opt_
resolve_ file_ path_ from_ symbol - Resolve an optional SymbolPath to optional WorkspaceFilePath via Registry.
- resolve_
file_ path_ from_ symbol - Resolve a SymbolPath to WorkspaceFilePath via Registry.