perl-refactoring
Refactoring and code-modernization utilities for Perl source.
Use this crate when you have parsed source plus analysis context and need to rewrite code, not just inspect it.
Where it fits
perl-refactoring sits above the parser and workspace index. It consumes AST
and symbol information, then performs import cleanup, modernization, rename,
and workspace-wide transformations.
Key entry points
import_optimizer::ImportOptimizermodernize::PerlModernizerrefactoring::RefactoringEngineworkspace_refactor::WorkspaceRefactorworkspace_rename::WorkspaceRename
Cargo features
workspace_refactorenables workspace-wide refactoring viaWorkspaceIndexmodernizeenables modernization transforms inRefactoringEngine
Example
use ImportOptimizer;
let optimizer = new;
let analysis = optimizer.analyze_content?;
let _optimized = optimizer.generate_optimized_imports;
Typical use
Use perl-refactoring when you need to migrate code, remove unused imports, or
perform cross-file symbol edits. If you only need symbol analysis or workspace
lookup, use the lower-level crates directly.