Skip to main content

Crate perl_refactoring

Crate perl_refactoring 

Source
Expand description

Refactoring and modernization helpers for Perl.

Provides AST-driven refactoring operations including import optimization, code modernization, and workspace-wide symbol rename. These are consumed by the LSP code-action and rename providers to offer automated transformations.

Re-exports§

pub use refactor::import_optimizer;
pub use refactor::inline;
pub use refactor::modernize;
pub use refactor::modernize_refactored;
pub use refactor::refactoring;
pub use refactor::workspace_refactor;
pub use refactor::workspace_rename;

Modules§

ast
Abstract Syntax Tree (AST) definitions for Perl parsing. AST facade for the core parser engine.
document_store
Document store for managing in-memory text content
error
Error types and recovery strategies for parser failures. Error types and recovery helpers for the parser engine.
position
Position tracking types and UTF-16 mapping utilities. Enhanced position tracking for incremental parsing
refactor
Refactoring and modernization helpers. Refactoring and modernization helpers.
workspace_index
Workspace-wide symbol index for fast cross-file lookups in Perl LSP.

Structs§

Node
Core AST node representing any Perl language construct within parsing workflows.
Parser
Parser state for a single Perl source input.

Enums§

NodeKind
Comprehensive enumeration of all Perl language constructs supported by the parser.
ParseError
Comprehensive error types that can occur during Perl parsing workflows

Type Aliases§

ParseResult
Result type for parser operations in the Perl parsing workflow pipeline
SourceLocation
Type alias for backward compatibility with SourceLocation.