Skip to main content

Module import

Module import 

Source
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§

DispatchSemantics
Semantic description of a use/require dispatch form.
ModuleImportHead
Parsed leading import token from a use/require line.

Enums§

ImportBehavior
Whether the module’s import method is called after loading.
ImportListForm
How a use statement spells its import list.
LoadTiming
When a module is loaded relative to program execution.
ModuleImportKind
Classifies the import statement form for a parsed line.
RequireForm
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.