fkling / fkling/astexplorer

Clicking on code inside a decorator doesn't highlight that part of the AST

Open
#269 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.5k
Forks
772
PR merge metrics
No merged PRs in 30d

Description

Hello,

FIrst of all thanks so much for ASTExplorer. It's such a great tool and as an eslint-plugin developer I use it a lot and appreciate the work.

I recently ran into an issue that I want to write some eslint rules for a home-grown library that we use solely within decorators (kind of like @connect). But I found out that selecting part of the code inside the decorator doesn't highlight the relevant part in the AST like it does with normal code.

Here is an example:

https://astexplorer.net/#/gist/1733789f1377e41502e844b2f9ac5a6d/87e23677115df42e7a3a1398b0ef609b6869daaf

* When I click "Test" from "Class Test extends Component" then the part of the AST gets highlighted
* When I click on "actions.finish$" in the decorator, then the AST doesn't get highlighted and jumps to the top

I'd love to help out with fixing this if it's not too hard 😄 If you can give me some pointers where to look then I'd gladly help.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.