Quick follow up from #504 fixing location handling with the Hermes parser. Adds a nodeToRange method supporting the two different AST formats generated by hermes-parser, as well as matching locationProps.
Test plan:
Ensure that "Hide location data" works for both babel: false and babel: true.
Ensure that hovering a node highlights the corresponding code for both babel: false and babel: true.
Quick follow up from #504 fixing location handling with the Hermes parser. Adds a
nodeToRange
method supporting the two different AST formats generated byhermes-parser
, as well as matchinglocationProps
.Test plan:
babel: false
andbabel: true
.babel: false
andbabel: true
.