Structs§
- Cached
Build - Pre-computed AST index. Built once when an AST enters the cache, then reused on every goto/references/rename/hover request.
- Cursor
Context - Context extracted from the cursor position via tree-sitter.
- Node
Info - TsDeclaration
- Information about a declaration found by tree-sitter.
Constants§
- CHILD_
KEYS - All AST child keys to traverse (Solidity + Yul).
Functions§
- bytes_
to_ pos - cache_
ids - cursor_
context - Extract cursor context: the identifier under the cursor and its ancestor names.
- find_
declarations_ by_ name - Find all declarations of a name in a source file using tree-sitter.
- goto_
bytes - goto_
declaration - goto_
declaration_ by_ name - Name-based AST goto — resolves by searching cached AST nodes for identifiers
matching
namein the current file, then followingreferencedDeclaration. - goto_
definition_ ts - Tree-sitter enhanced goto definition.
- pos_
to_ bytes - src_
to_ location - Convert a
"offset:length:fileId"src string to an LSP Location. - validate_
goto_ target - Validate that the text at a goto target location matches the expected name.
Type Aliases§
- External
Refs - Maps
"offset:length:fileId"src strings from Yul externalReferences to the Solidity declaration node id they refer to.