Skip to main content

Module token

Module token 

Source
Expand description

Token-facing adapters used by module parsing. Boundary-safe Perl module token replacement helpers.

Handles canonical (Foo::Bar) and legacy (Foo'Bar) separator variants and delegates standalone token scanning to the boundary module.

Re-exports§

pub use crate::name::module_variant_pairs;

Functions§

contains_module_token
Returns true when line contains module_name as a standalone module token, respecting module boundaries.
replace_module_token
Replace standalone from module token occurrences in line with to.