astexplorer icon indicating copy to clipboard operation
astexplorer copied to clipboard

Highlighting nodes doesn't work well for recast

Open fkling opened this issue 6 years ago • 0 comments

Describe the bug With the new highlighting logic, tokens within the location information are highlighted, which is not useful.

To Reproduce Steps to reproduce the behavior:

  1. Select recast as parser
  2. Select esprima in its settings
  3. Click anywhere in the code

Expected behavior The corresponding AST node should be highlighted.

Screenshots Screenshot_2019-09-25_10-10-10

For highlighting purposes we probably should not descent into location information nodes.

This can be easily mitigated for now by selecting "Hide location information".

fkling avatar Sep 25 '19 08:09 fkling