Skip to main content

Module parser

Module parser 

Source

Structs§

FileParser
Core parsing engine. Handles language detection, parse tree caching, symbol table caching, and query pattern execution via tree-sitter.
SymbolCache
Shared symbol cache that can be pre-warmed in a background thread and merged into the main thread. Thread-safe for building, then transferred to the single-threaded main loop.
TreeSitterProvider
Provider that uses tree-sitter for real symbol extraction. Implements the LanguageProvider trait from language.rs.

Enums§

LangId
Supported language identifier.

Functions§

detect_language
Maps file extension to language identifier.
grammar_for
Returns the tree-sitter Language grammar for a given LangId.