Skip to main content

Module api

Module api 

Source
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 path and return a hierarchical outline.
symbols
Parse path (with optional language hint) and return its symbols.
symbols_from_source
Parse a source str for language and return its symbols. Useful for unit tests where the input lives in-memory rather than on disk.