Skip to main content

Crate cartog_core

Crate cartog_core 

Source
Expand description

Core types and utilities for the cartog code graph indexer.

Defines the shared data model (Symbol, Edge, SymbolKind, EdgeKind) used by all other cartog crates. Symbol IDs are deterministic and invariant to line movements — built from file_path:kind:qualified_name.

Also provides detect_language for mapping file extensions to language names without pulling in tree-sitter grammar dependencies.

Structs§

ChangesResult
Edge
FileInfo
Symbol

Enums§

EdgeKind
SymbolKind
Visibility

Functions§

detect_language
Map file extension to language name.
symbol_id
Build a stable symbol ID: file_path:kind:qualified_name