Expand description
Move recipe: relocate a symbol’s definition to another file and rewrite imports.
Steps:
- Locate the symbol in the source file
- Extract its definition text via the editor
- Append the definition to the destination file
- Delete the definition from the source file
- Rewrite import statements in every file that imported it from the old module path (best-effort: emits a warning and skips when the new path can’t be derived)
- Optionally leave a re-export in the source file (
--reexport)
Structs§
- Move
Outcome - Outcome details for a planned move (used by callers that want a richer report
than
RefactoringPlanalone).
Functions§
- plan_
move - Build a move plan without touching the filesystem.