Skip to main content

Module source_adapter

Module source_adapter 

Source
Expand description

Definition-source adapter contracts and extension-based routing.

Structs§

Extraction
Definitions and non-fatal diagnostics extracted from one source.
ExtractionDiagnostic
A source-localized problem encountered while extracting definitions.
SourceAdapterRegistration
One suffix-to-adapter registration.
SourceExtractionSession
Reusable state for extracting multiple definition sources in one analysis run.
SourceFile
A discovered definition source and the language used to parse it.

Enums§

ExtractionDiagnosticLevel
Impact of a source-extraction diagnostic.
SourceLanguage
Parser language selected for a definition source.

Statics§

SOURCE_ADAPTER_REGISTRY
Registered definition-source suffixes in deterministic lookup order.

Traits§

SourceAdapter
Converts one supported definition-source language into the shared definition IR.

Functions§

adapter_for_language
Returns the adapter for an already classified source language.
adapter_for_path
Returns the adapter registered for path, rejecting declaration and source-map files.
language_for_path
Classifies a path using the registered suffixes.
registered_suffixes
Returns the registered suffixes for tooling and adapter conformance tests.