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.
- Exception
Context - Structured exception context for exception-family functions.
- Hover
Info - Hover information for symbols displayed in LSP hover requests.
- 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
Token - A semantic token with type and modifiers for LSP syntax highlighting.
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.
- is_
exception_ function - Check if a function name is in the Perl exception family.