Are you an LLM? You can read better optimized documentation at /tree-sitter.zig/use-cases/code-navigation.md for this page in Markdown format
Code Navigation โ
Problem โ
Jumping between a use and its definition requires understanding scope structure, not text.
Why tree-sitter.zig helps โ
Parent chains give you enclosing scopes; queries collect candidate definitions; byte ranges give you jump targets.
API โ
Node.parent, descendantForByteRange, Query captures.
Architecture โ
text
Symbol at offset โ namedDescendantForByteRange โ parent scopes
โ query definitions in scope โ jump to range