Expand description
Trace Extract Module
Unified extraction interface for parsing source files and extracting symbols, calls, references, scopes, and tokens using tree-sitter (primary) with regex fallback for unsupported languages.
@module trace/extract
Modules§
- regex
- Regex-Based Extraction Fallback
- treesitter
- Tree-sitter Based Extraction
Structs§
- Extracted
Call - A function/method call extracted from source code
- Extracted
Data - Complete extraction results from a source file
- Extracted
Ref - A reference to a symbol (variable read/write, type annotation, import)
- Extracted
Scope - A scope in the AST hierarchy
- Extracted
Symbol - A symbol definition extracted from source code
- Extracted
Token - A token (identifier) extracted from source code
Enums§
- Extract
Error - Errors that can occur during extraction
- Extraction
Method - Method used for extraction
- RefKind
- Kind of reference extracted from source code
- Scope
Kind - Kind of scope in the AST
- Symbol
Kind - Kind of symbol extracted from source code
- Token
Kind - Kind of token extracted
Functions§
- detect_
language - Detect language from file path extension
- extract_
file - Extract symbols, calls, references, scopes, and tokens from a source file.
- is_
treesitter_ supported - Check if language is supported by tree-sitter