Skip to main content

Module semantic

Module semantic 

Source
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-moduleContents
tokensSemanticTokenType, SemanticTokenModifier, SemanticToken
hoverHoverInfo
builtinsBuiltinDoc, get_builtin_documentation, classification helpers
node_analysisimpl SemanticAnalyzer — AST traversal and source helpers
referencesimpl SemanticAnalyzer — reference resolution, find_all_references
modelSemanticModel — stable, query-oriented LSP facade

Structs§

BuiltinDoc
Documentation entry for a Perl built-in function.
ExceptionContext
Structured exception context for exception-family functions.
HoverInfo
Hover information for symbols displayed in LSP hover requests.
SemanticAnalyzer
Semantic analyzer providing comprehensive IDE features for Perl code.
SemanticModel
A stable, query-oriented view of semantic information over a parsed file.
SemanticToken
A semantic token with type and modifiers for LSP syntax highlighting.

Enums§

SemanticTokenModifier
Semantic token modifiers for Analyze/Complete stage highlighting.
SemanticTokenType
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.