Expand description
Semantic analysis, symbol extraction, and type inference. Semantic analyzer and token classification. Semantic analysis for IDE features.
This module provides semantic analysis on top of the symbol table, including semantic tokens for syntax highlighting, hover information, and code intelligence features.
§Module layout
| Sub-module | Contents |
|---|---|
tokens | SemanticTokenType, SemanticTokenModifier, SemanticToken |
hover | HoverInfo |
builtins | BuiltinDoc, get_builtin_documentation, classification helpers |
node_analysis | impl SemanticAnalyzer — AST traversal and source helpers |
references | impl SemanticAnalyzer — reference resolution, find_all_references |
model | SemanticModel — stable, query-oriented LSP facade |
Structs§
- Builtin
Doc - Documentation entry for a Perl built-in function.
- Definition
Location - Definition location that may include a workspace URI.
- Effective
Pragma State - Effective pragma state at a byte offset.
- Exception
Context - Structured exception context for exception-family functions.
- Exported
Subroutine - A same-file subroutine that can be exported by an
Exporterpackage. - File
Export Metadata - Export metadata extracted from one parsed source file.
- Hover
Info - Hover information for symbols displayed in LSP hover requests.
- Package
Export Metadata - Export metadata captured for a single package declaration in a file.
- Parent
Chain - Ordered inheritance information for a class.
- Pragma
Doc - Documentation entry for a Perl pragma.
- Resolved
Symbol - Read-only symbol projection returned by semantic query lookups.
- Semantic
Analyzer - Semantic analyzer providing comprehensive IDE features for Perl code.
- Semantic
Model - A stable, query-oriented view of semantic information over a parsed file.
- Semantic
Query Facade - Stable read-only semantic query surface for incremental consumer adoption.
- Semantic
Token - A semantic token with type and modifiers for LSP syntax highlighting.
- Visible
Import - Imported module visible to the current document.
Enums§
- Semantic
Token Modifier - Semantic token modifiers for Analyze/Complete stage highlighting.
- Semantic
Token Type - Semantic token types for syntax highlighting in the Parse/Complete workflow.
Functions§
- get_
attribute_ documentation - Get documentation for a Perl subroutine or variable attribute.
- get_
builtin_ documentation - Get documentation for a Perl built-in function.
- get_
exception_ context - Get exception context for upgrade suggestions and error variables.
- get_
moose_ type_ documentation - Get documentation for a Moose/Moo/Mouse built-in type constraint.
- get_
operator_ documentation - Get documentation for a Perl file test operator.
- get_
pragma_ documentation - Get hover documentation for a Perl pragma.
- is_
exception_ function - Check if a function name is in the Perl exception family.