Skip to main content

Module code

Module code 

Source
Expand description

Tree-sitter code-symbol indexing.

Pure parsing layer: turns source files into ParsedFiles (definitions and references) and provides a gitignore-aware directory walk. It has no knowledge of the graph store — crate::actions::code maps the parsed output onto entities/relations and handles incremental hashing.

Re-exports§

pub use lang::Lang;
pub use lang::detect;

Modules§

lang
Language registry for code-symbol indexing.

Structs§

Def
A symbol definition extracted from a file.
ParsedFile
Parsed symbols for a single file.
Ref
A reference (call / type use) extracted from a file.

Constants§

MAX_FILE_BYTES
Files larger than this are skipped (parsing huge generated/minified files is slow and rarely useful for a symbol map).

Functions§

hash_bytes
BLAKE3 content hash (hex) used for incremental change detection.
parse_source
Parse one in-memory source buffer into defs/refs. Returns an empty result for unsupported languages or unbuildable tag configs.
walk
Walk root (a file or directory) and collect indexable source files, honoring .gitignore/hidden-file rules and skipping oversized files.