Skip to main content

Crate perl_module_boundary

Crate perl_module_boundary 

Source
Expand description

Boundary-aware standalone Perl module-token scanning.

This crate has one responsibility: find standalone occurrences of a module token on a single source line while respecting canonical (::) and legacy (') package separator boundaries.

Structs§

ModuleTokenRange
Byte range for a standalone module-token match in a source line.
ModuleTokenRangeIter
Iterator over standalone module_name matches in line.

Functions§

contains_standalone_module_token
Return true when line contains module_name as a standalone module token.
find_standalone_module_token_ranges
Return an iterator of standalone module_name matches in line.