perl-module-boundary
Detect standalone Perl module tokens at lexical boundaries.
This crate answers a narrow question: does a line contain a module token that is truly standalone, or is it part of a larger identifier or path? That makes it the boundary-checking layer for import, reference, and rename workflows.
Pipeline
perl-module-token-coreparses the token span.perl-module-boundaryfilters that span down to standalone matches.perl-module-import,perl-module-reference, andperl-module-renameuse the result to avoid partial matches.
API
ModuleTokenRangeModuleTokenRangeIterfind_standalone_module_token_rangescontains_standalone_module_token
Example
use ;
let line = "use Foo::Bar;";
assert!;
assert_eq!;