Module semantic

Source
Expand description

Optional LSP and SCIP semantic enrichment models. UI-agnostic LSP enrichment and JSON SCIP import models.

Structs§

LspCapabilities
Feature set advertised synchronously by an LSP backend.
LspDiagnostic
Raw version-tagged LSP diagnostic.
LspEnrichment
Complete enrichment snapshot tied to one document version.
LspRequestId
Opaque caller/backend request identifier used for cancellation.
NoopLspBackend
Backend whose capabilities are all false and whose methods use trait defaults.
ScipDocumentIndex
One imported SCIP document and its local semantic records.
ScipNavigationLink
Cross-document navigation from one reference to a definition.
ScipOccurrence
One definition or reference occurrence of a canonical SCIP symbol.
ScipProjectIndex
JSON-deserializable SCIP-like project index.
ScipProjectMetadata
Project provenance stored with SCIP import data.
ScipProjectSummary
Converted project summaries plus cross-document navigation links.
ScipRelation
Local relation between two canonical SCIP symbol strings.
ScipSymbol
Imported SCIP symbol descriptor.
SemanticDocumentSymbol
Language-server/SCIP symbol payload before conversion to local symbol IR.
SemanticReference
Directed semantic relation between two summary-local symbol IDs.

Enums§

LspError
Typed failure from an LSP backend or adapter boundary.
ScipImportError
Failure while importing the compact SCIP JSON schema.
ScipOccurrenceRole
Whether a SCIP occurrence defines or references its symbol.

Traits§

LspBackend
Synchronous, UI-agnostic interface for optional language-server enrichment.

Functions§

collect_lsp_enrichment
Collects one synchronous enrichment snapshot from advertised capabilities.
import_scip_json_str
Deserializes the crate’s compact SCIP JSON schema.
lsp_diagnostics_to_diagnostics
Converts current-version LSP diagnostics into local diagnostics.
lsp_symbols_to_code_symbols
Converts semantic symbols into document-local symbols sourced as LSP.
merge_code_file_summaries
Merges symbol and edge payloads under caller-supplied document metadata.
scip_document_to_summary
Converts one SCIP document into the local symbol/edge representation.
scip_project_to_summary
Converts every imported document and builds cross-file navigation.
scip_symbols_to_code_symbols
Converts semantic symbols into document-local symbols sourced as SCIP.
semantic_references_to_edges
Copies semantic references into source-agnostic symbol edges.