Skip to main content

Module import

Module import 

Source
Expand description

Structured import representation for cross-file resolution.

Raw import strings (Vec<String>) lack the structural information needed for production-grade import resolution across 12 languages. This module provides ImportStatement — a typed representation that carries the import path, its structural classification, and source location.

Each language parser produces Vec<ImportStatement> during tree-sitter extraction. The classification into ImportKind happens at parse time, eliminating the need for a separate is_external_import() pass during edge construction.

Structs§

ImportStatement
A single import statement extracted from source code by tree-sitter.

Enums§

ImportKind
Classification of an import statement that determines how the resolver handles it.