Additional metadata in the AST nodes
Author: cernymatejCreated Sep 29, 2026Updated Sep 30, 2026
LabelsA-ast
The original oxc AST from the early days used to have additional metadata, like whether an identifier was a reference or a binding one, etc.
Having this info would make things much easier for us in oxc-walker, where we've had to reimplement the detection in JS. It still comes with some constraints, as there are cases when we can't determine the identifier type based solely on the current node and its parent, for example.
Having a feature flag for adding extra metadata, augmenting the estee-compatible AST, would be great!
Source: oxc-project/oxc