Skip to main content

Crate perl_pragma

Crate perl_pragma 

Source
Expand description

Pragma tracker for Perl code analysis

Tracks use and no pragmas throughout the codebase to determine effective pragma state at any point in the code.

Structs§

CompileTimePragmaEnvironment
Explicit compile-time pragma environment that can answer file-position queries and expose immutable snapshots.
PerlVersion
Parsed Perl version from a lexical use v...; or use 5.xxx; pragma.
PragmaQueryCursor
Monotonic query cursor for repeated pragma lookups.
PragmaSnapshot
Immutable compile-time snapshot of pragma state.
PragmaState
Pragma state at a given point in the code
PragmaStateQuery
Query object describing compile-time pragma state at a byte offset.
PragmaTracker
Tracks pragma state throughout a Perl file

Functions§

features_enabled_by_version
Returns the language features implicitly enabled by declaring use VERSION.
parse_perl_version
Parse a Perl version string into a major/minor pair.
version_implies_strict
Whether use VERSION implies strict for this version.
version_implies_warnings
Whether use VERSION implies warnings for this version.