perl-module-token-core
Low-level module token span parsing and boundary predicates.
This crate is the lexical foundation for the module pipeline. It knows how to scan a token span, recognize canonical and legacy separators, and check whether the token stands alone on a line.
Pipeline
perl-module-token-coreparses spans.perl-module-boundaryfilters standalone matches.perl-module-tokenuses the result for replacement.perl-module-import,perl-module-reference, andperl-module-renameconsume it higher up the stack.
Key API
ModuleTokenSpanparse_module_tokenhas_standalone_module_token_boundariesis_module_token_charis_module_identifier_char
Example
use ;
assert_eq!;
assert!;