Skip to main content

Module identifier_loc_index

Module identifier_loc_index 

Source
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§

IdentifierLocEntry
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§

IdentifierLocIndex
Index mapping node_id → IdentifierLocEntry for all Identifier and JSXIdentifier nodes in a function’s AST.