Expand description
AST Mutation Engine
Registry-centric mutation execution without file I/O.
§Components
ASTMutationEngine: Core execution engineASTMutationContext: Context passed to mutationsASTRegApply: Trait for registry-based mutation executionMutationEvent: Events emitted during mutationSourceDumper: Type-safe pipeline for source generation (Generator → Dumper)RegistryGenerator: Generate files from ASTRegistry + SymbolRegistry (SymbolPath-based)modified_files: Content-based modified file detection
§Implementations
The impls module contains ASTRegApply implementations for mutations
defined in ryo-mutations.
Re-exports§
pub use impls::add_item_v2;pub use impls::create_mod_v2;pub use impls::remove_item_v2;
Modules§
- impls
- ASTRegApply implementations for basic mutations
Structs§
- ASTMutation
Context - Context passed to
ASTRegApply::apply_to_registry - ASTMutation
Engine - AST-centric mutation execution engine
- Execution
Result - Result of mutation execution
- Generated
Crate - Result of generation for a single crate.
- Generated
File - A single generated file.
- Generated
Workspace - Result of multi-crate workspace generation.
- Registry
Generator - Generator that creates source files from ASTRegistry + SymbolRegistry.
- Source
Dumper - Type-safe source dumper that enforces generator usage.
Enums§
- Modification
Type - Type of modification made to a symbol
- Mutation
Event - Events emitted during mutation execution
- Resolve
Error - Error when resolving a symbol
Traits§
- ASTReg
Apply - Trait for mutations that can be applied to ASTRegistry
- Source
Generator - Trait for source code generators.
Functions§
- collect_
affected_ ids - Extract affected symbol IDs from mutation events.
- collect_
modified_ symbols - Collect modified SymbolIds from mutation events.
- multi_
file_ dumper - Create a standard multi-file dumper.
- single_
file_ dumper - Create a single-file dumper (all code in one file with nested mods).