Skip to main content

Module parse

Module parse 

Source
Expand description

Comindly parse — tree-sitter extraction of symbols, the Contains hierarchy and per-file facts.

The walk is language-agnostic; crate::lang answers the syntax questions per grammar. Imports, references and type hints go into FileFacts, which crate::resolve binds.

Structs§

ParseOutput
Symbols, structural edges and per-file facts extracted from a repo (or some files of it).

Constants§

RETURN
Type-hint name for a callable’s declared return type.

Functions§

parse_file
Parse a single file. Ok(None) means “unsupported language”, not an error.
parse_files
Parse a specific set of repo-relative files (for incremental indexing). Unsupported or missing files are skipped.
parse_repo
Parse every supported source file under root, in parallel, respecting .gitignore.