Skip to main content

Crate perl_semantic_facts

Crate perl_semantic_facts 

Source
Expand description

Neutral semantic fact vocabulary for Perl analysis layers.

This crate defines strongly-typed IDs and serializable fact records that can be shared between parser-derived semantics, semantic analyzer synthesis, and workspace indexing.

It intentionally does not parse Perl, implement LSP providers, or own workspace storage backends.

Structs§

AnchorFact
AnchorId
DefinitionCandidate
A ranked entry in a definition candidate list.
DiagnosticFact
DiagnosticId
EdgeFact
EdgeId
EntityFact
EntityId
ExportSet
Canonical export facts inferred for a Perl package.
ExportTag
Named %EXPORT_TAGS entry and its members.
FileId
GeneratedMember
A framework-synthesized member (e.g. Moo/Moose accessor from has).
ImportSpec
Canonical import specification inferred for a single import site.
OccurrenceFact
OccurrenceId
PackageEdge
A directed edge in the package graph.
PackageNode
A node in the package/class/role graph.
PlanBlocker
A condition that blocks a rename or safe-delete operation.
PlanWarning
A non-blocking warning attached to a rename or safe-delete plan.
PlannedEdit
A planned text edit within a rename operation.
ProviderFactTrace
Source/provenance trace for a provider answer.
ReferenceEdge
Occurrence-based reference edge linking a reference site to zero, one, or many target entity candidates.
RenamePlan
A conservative rename plan enumerating affected occurrences and blockers.
SafeDeletePlan
A conservative safe-delete plan enumerating blockers that prevent deletion.
ScopeId
VisibleSymbol
One symbol visible at a query point with source attribution.
VisibleSymbolContext
Origin metadata for a VisibleSymbol, enabling hover explanations and rename safety analysis.

Enums§

Confidence
DefinitionRank
Coarse ranking tier for a definition candidate.
DefinitionRankReason
Structured reason explaining why a DefinitionCandidate received its rank.
EdgeKind
EntityKind
GeneratedMemberKind
Classification of a framework-generated member.
ImportKind
ImportSymbols
OccurrenceKind
PackageEdgeKind
Kind of relationship in the package graph.
PackageKind
Classification of a package graph node.
PlanBlockerReason
Reason a rename or safe-delete operation is blocked.
PlannedEditCategory
Classification of a planned edit within a rename operation.
Provenance
ProviderFactFreshness
Freshness state for a provider fact source.
ProviderFactSourceKind
Coarse source class for a provider answer.
ProviderFallbackState
How a provider used a traced fact source.
ProviderSurface
LSP provider surface that consumed or considered a semantic fact.
ValueShape
Lightweight type approximation for a variable or expression.
VisibleSymbolSource