Skip to main content

Crate perl_lsp_import_management

Crate perl_lsp_import_management 

Source
Expand description

Perl import-management helpers for LSP code actions.

This crate intentionally focuses on a single responsibility: collecting, classifying, and rewriting use/require statements.

Functionsยง

collect_imports
Collect import statements (use and require) from source lines.
find_imports_range
Find the byte range containing the contiguous import block boundaries.
guess_module_for_function
Guess a module name for a common function.
sort_imports
Sort imports by category: pragmas, core, CPAN-style, then local.