Expand description
Normalized high-level constructs lowered from the parser AST. High-level IR lowered from the parser AST.
HIR is the first compiler-substrate layer above raw parser nodes. It keeps stable language constructs, parser anchors, source ranges, and scope graph proof data without changing LSP provider behavior.
Structs§
- AstAnchor
- Parser AST location that produced a HIR item.
- Bareword
Expr - Bareword expression shell payload.
- Bareword
Fact - One source-backed syntactic bareword classification.
- Bareword
Table - Source-backed bareword facts lowered from parsed identifiers.
- Binding
- Compiler binding produced from a HIR declaration.
- Binding
Reference - Variable reference and its lexical binding resolution.
- Block
Shell - Block shell payload.
- Call
Expr - Function-like call shell payload.
- Compile
Directive - One compile-time directive.
- Compile
Effect - One Rust-modeled Perl compile-time effect.
- Compile
Environment - HIR-local compile environment for compiler-substrate proof.
- Compile
Environment Boundary - Dynamic compile-environment boundary.
- Compile
Phase Block - Compile-time phase block.
- Dynamic
Boundary - Dynamic-boundary shell payload.
- Export
Declaration - Static Exporter-style declaration observed in a package stash.
- Framework
Adapter Registry - Registry for compiler-substrate framework adapters.
- Framework
Dynamic Boundary Fact - Dynamic or unsupported framework-adapter boundary.
- Framework
Exported Symbol Fact - One framework-exported symbol fact.
- Framework
Fact Graph - Facts emitted by framework adapters.
- Glob
Slot - One slot inside a Perl typeglob.
- HirBinding
Id - Stable identifier for a HIR binding within one lowered file.
- HirFile
- HIR for one parsed file.
- HirId
- Stable identifier for a HIR item within one lowered file.
- HirItem
- One lowered HIR item with common metadata required by compiler layers.
- HirScope
Id - Stable identifier for a HIR scope frame within one lowered file.
- IncRoot
Fact - Include-root effect.
- Indirect
Call Expr - Indirect-object call shell payload.
- Literal
Expr - Literal expression shell payload.
- Method
Call Expr - Method-call shell payload.
- Method
Decl - Method declaration HIR payload.
- Module
Request - Module load request.
- Module
Resolution Cache Invalidation - Cache invalidation inputs for a module-resolution candidate.
- Module
Resolution Cache Key - Cache key for a static module-resolution candidate.
- Module
Resolution Cache Root Key - Root identity included in module-resolution cache keys.
- Module
Resolution Candidate - Derived module-resolution candidate fact keyed to a HIR module request.
- Module
Resolution Candidate Path State - Candidate path state used to invalidate module-resolution cache entries.
- Module
Resolution Candidate Root - A single candidate root/path pair for a static module request.
- Module
Resolution Root - Caller-supplied include root for module-resolution candidate facts.
- Package
Decl - Package declaration HIR payload.
- Package
Inheritance Edge - Inheritance edge established by
@ISA,use parent, oruse base. - Package
Stash - One Perl package stash.
- Pragma
Effect - Pragma or feature state change.
- Pragma
State Fact - Effective strict/warnings/feature state after a compile-time transition.
- Prototype
Fact - One source-backed prototype fact for a named subroutine declaration.
- Prototype
Table - Source-backed subroutine prototype facts lowered from parsed declarations.
- Require
Decl - Require declaration HIR payload.
- Scope
Frame - One lexical/package scope frame.
- Scope
Graph - HIR-local scope graph for compiler-substrate proof.
- Stash
Dynamic Boundary - Dynamic stash mutation boundary.
- Stash
Graph - HIR-local package stash graph for compiler-substrate proof.
- SubDecl
- Subroutine declaration HIR payload.
- UseDecl
- Use declaration HIR payload.
- Variable
Binding - One variable binding named by a declaration.
- Variable
Decl - Variable declaration HIR payload.
Enums§
- Bareword
Role - Syntactic roles for parsed barewords.
- Call
Form - Parser-observed call shape.
- Compile
Confidence - Confidence for HIR-local compile-environment facts.
- Compile
Directive Action - Compile-time directive action.
- Compile
Directive Kind - Compile-time directive classification.
- Compile
Effect Fact Kind - Semantic fact category emitted by a compile effect.
- Compile
Effect Kind - Compiler state mutation represented by an effect.
- Compile
Effect Source Kind - Source construct that produced a compile effect.
- Compile
Environment Boundary Kind - Dynamic compile-environment boundary category.
- Compile
Phase - Perl compile/runtime phase.
- Compile
Provenance - Provenance for HIR-local compile-environment facts.
- Dynamic
Boundary Kind - Dynamic-boundary category.
- Export
Declaration Kind - Export declaration category.
- Framework
Adapter Kind - Framework adapter kind.
- Framework
Exported Symbol Kind - Export relationship represented by a framework fact.
- Glob
Slot Kind - Perl typeglob slot category.
- Glob
Slot Source - Source shape that populated a glob slot.
- HirKind
- First-slice HIR constructs.
- IncRoot
Action - Include-root action.
- IncRoot
Kind - Include-root source.
- Inheritance
Source - Source shape that established an inheritance edge.
- Literal
Kind - Literal category.
- Module
Request Kind - Source shape for a module load request.
- Module
Resolution Candidate Status - Static resolution state for a module candidate packet.
- Module
Resolution Status - Static module-resolution status.
- Pragma
Argument Kind - Static pragma argument shape.
- Recovery
Confidence - Recovery quality for a lowered HIR item.
- Scope
Kind - Scope frame category.
- Stash
Confidence - Confidence for HIR-local stash facts.
- Stash
Dynamic Boundary Kind - Dynamic stash boundary category.
- Stash
Provenance - Provenance for HIR-local stash facts.
- Storage
Class - Storage class represented by a binding.
Constants§
- COMPILE_
EFFECT_ MODEL_ VERSION - Current HIR compile-effect model version.
Functions§
- lower_
ast - Lower a parser AST into first-slice HIR items.