Skip to main content

Module builder

Module builder 

Source
Expand description

Build a CodeGraph from source using tree-sitter. Parsing is language-parameterized (Language); Rust, Python, JavaScript, TypeScript/TSX, Go, Java, C#, C, C++, Ruby, PHP, Bash, Kotlin, Swift, Lua, Scala, and Elixir are supported, and a new grammar is a matter of adding its node-kind mappings.

Enums§

Language
A source language the graph builder understands.

Functions§

build
Parse src as language into a path-agnostic slice: its symbols and name-based references, with no file path (ADR 0012). The path is supplied later at assembly from the manifest.
build_rust
Parse Rust source. Back-compatible shorthand for build(Language::Rust, src).