identifier location range include type annotation is inconvenient #6707
Labels
imported
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
Currently identifier with flow type annotation will have location/range include the type annotation.
Such behavior is strange and very inconvenient for the tools.
For example, hax/js-refactor@d4f5f36 hacked for it, but it's still not accurate and it seems no easy way to get the accurate range without lookup token list.
The text was updated successfully, but these errors were encountered: