Skip to content

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

Next steps โ€‹

Released under the MIT License.