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.
DefinitionLocation
Definition location that may include a workspace URI.
EffectivePragmaState
Effective pragma state at a byte offset.
ExceptionContext
Structured exception context for exception-family functions.
ExportedSubroutine
A same-file subroutine that can be exported by an Exporter package.
FileExportMetadata
Export metadata extracted from one parsed source file.
HoverInfo
Hover information for symbols displayed in LSP hover requests.
PackageExportMetadata
Export metadata captured for a single package declaration in a file.
ParentChain
Ordered inheritance information for a class.
PragmaDoc
Documentation entry for a Perl pragma.
ResolvedSymbol
Read-only symbol projection returned by semantic query lookups.
SemanticAnalyzer
Semantic analyzer providing comprehensive IDE features for Perl code.
SemanticModel
A stable, query-oriented view of semantic information over a parsed file.
SemanticQueryFacade
Stable read-only semantic query surface for incremental consumer adoption.
SemanticToken
A semantic token with type and modifiers for LSP syntax highlighting.
VisibleImport
Imported module visible to the current document.

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.
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.