Expand description
Code fact extraction and storage library.
This crate provides:
- Core fact types (symbols, imports, exports)
- Parser utilities for tree-sitter grammars
- Symbol extraction and flattening (
SymbolParser) - Fact storage (
FileIndex) - Trait definitions for fact extraction
Re-exports§
pub use extract::ExtractOptions;pub use extract::ExtractResult;pub use extract::Extractor;pub use extract::InterfaceResolver;pub use extract::OnDemandResolver;
Modules§
- extract
- Shared symbol extraction from source code.
Structs§
- Call
Graph Stats - Call graph statistics
- Changed
Files - Files that changed since last index
- Export
- An export declaration
- File
Index - Flat
Import - A flattened import for indexing (one entry per imported name)
- Flat
Symbol - A flattened symbol for indexing (parent reference instead of nested children)
- Import
- An import statement
- Indexed
File - Metadata about an indexed file
- Missing
Grammar - Summary entry returned by
take_missing_grammars. - Symbol
- A code symbol extracted from source
- Symbol
Match - Result from symbol search
- Symbol
Parser
Enums§
- Symbol
Kind - Symbol kind classification
- Visibility
- Symbol visibility
Functions§
- available_
external_ grammars - List grammars available in external search paths.
- grammar_
loader - Get the global grammar loader singleton (canonical instance from
normalize-languages). - parse_
with_ grammar - Parse source code with a specific grammar.
- parser_
for - Create a parser for a specific grammar.
- peek_
missing_ grammars - Peek at the missing-grammar tracker without resetting it.
- report_
missing_ grammar - Record a grammar load failure and emit a one-shot stderr warning.
- take_
missing_ grammars - Drain and return the missing-grammar tracker.
- try_
get_ grammar - Try to load a grammar, surfacing missing-grammar failures as a one-shot
stderr warning. Returns
Noneon any load failure (caller can short-circuit like?).