Expand description
Programmatic entry point to the AST builtins. Embedders typically go through the registered builtins, but tests and tools that want strongly-typed access can use these helpers directly.
Functionsยง
- outline
- Parse
pathand return a hierarchical outline. - parse_
tree - Parse a source
strforlanguageand return the raw tree-sitter tree. Used by the typed symbol graph in [crate::code_index::symbol_graph] to sweep for call sites without re-doing the work the AST symbol extractor already did. - parse_
with_ symbols - Parse
sourceonce, then return the tree plus the symbol list extracted from it. Lets a caller (e.g. the typed symbol graph) avoid paying the parse cost twice when it needs both products. - symbols
- Parse
path(with optional language hint) and return its symbols. - symbols_
from_ source - Parse a source
strforlanguageand return its symbols. Useful for unit tests where the input lives in-memory rather than on disk.