Skip to main content

Module module_cache

Module module_cache 

Source
Expand description

Module cache for cross-file navigation

Provides module resolution and caching for import statements, enabling go-to-definition and find-references across .shape files.

Structs§

ExportedSymbol
An exported symbol from a module
ModuleCache
Module cache for tracking and resolving imports
ModuleChild
Child entry used for hierarchical module completion.
ModuleInfo
Information about a loaded module

Enums§

SymbolKind
Kind of exported symbol

Constants§

MAX_WORKSPACE_FILES
Bound on workspace-file enumeration to keep the LSP responsive on monorepos. Mirrors rust-analyzer’s per-crate file caps; if a workspace genuinely has more than this many .shape files, the user is editing in a context where eager indexing is the wrong default and they should scope the LSP via shape.toml [modules].paths.

Functions§

path_to_module_path
W2.7 willRenameFiles helper — derive the canonical Shape from module path (a::b::c) for a .shape file relative to the workspace root.