Skip to main content

Crate perl_module_rename

Crate perl_module_rename 

Source
Expand description

Deterministic module-import rename edit planning.

This crate isolates the small but critical responsibility of computing line edits for Perl module file-rename workflows.

Structs§

ModuleLineEdit
A full-line replacement edit for a module rename.

Functions§

apply_module_rename_edits
Apply full-line ModuleLineEdit replacements to source text.
line_references_isa_assignment
Return true when line contains an @ISA assignment that references module_name as a standalone token.
line_references_qualified_call
Return true when line contains a qualified call that uses module_name as a namespace prefix.
plan_module_rename_edits
Plan full-line edits needed to update module imports after file rename.
replace_module_name_prefix
Replace old_module:: namespace prefixes in line with new_module::.