Expand description
Builds an index mapping identifier node-IDs to source locations.
Walks the function’s AST to collect (node_id, start, SourceLocation, is_jsx)
for every Identifier and JSXIdentifier node. Keyed by node_id for identity
lookups; each entry also stores start (byte offset) for range-containment
checks in gather_captured_context.
Structs§
- Identifier
LocEntry - Source location and whether the identifier is a JSXIdentifier.
Functions§
- build_
identifier_ loc_ index - Build an index of all Identifier and JSXIdentifier positions in a function’s AST.
Type Aliases§
- Identifier
LocIndex - Index mapping node_id → IdentifierLocEntry for all Identifier and JSXIdentifier nodes in a function’s AST.