Functions§
- all_
references - byte_
to_ decl_ via_ external_ refs - Check if cursor byte position falls on a Yul external reference in the given file. Returns the Solidity declaration id if so.
- byte_
to_ id - goto_
references - goto_
references_ for_ target - Find all references to a definition in a single AST build, identified by the definition’s file path + byte offset (stable across builds). Uses byte_to_id to find this build’s node ID for the same definition, then scans for referenced_declaration matches.
- goto_
references_ with_ index - id_
to_ location - id_
to_ location_ with_ index - resolve_
target_ location - Resolve cursor position to the target definition’s location (abs_path + byte offset). Node IDs are not stable across builds, but byte offsets within a file are. Returns (abs_path, byte_offset) of the definition node, usable with byte_to_id in any other build that includes that file.