Expand description
use/require import modeling and utilities.
Single-line Perl import head parsing.
Parse a single source line that starts with use or require and return
the first import token with stable byte offsets.
Structs§
- Dispatch
Semantics - Semantic description of a
use/requiredispatch form. - Module
Import Head - Parsed leading import token from a
use/requireline.
Enums§
- Import
Behavior - Whether the module’s
importmethod is called after loading. - Import
List Form - How a
usestatement spells its import list. - Load
Timing - When a module is loaded relative to program execution.
- Module
Import Kind - Classifies the import statement form for a parsed line.
- Require
Form - Distinguishes the two syntactic forms of
require.
Functions§
- parse_
module_ import_ head - Parse the leading import token of a single Perl source line.
- resolve_
known_ export_ tag - Resolve a known export tag to its symbol list for a specific module.