This repository was archived by the owner on Jan 14, 2019. It is now read-only.
This repository was archived by the owner on Jan 14, 2019. It is now read-only.
Change the way to retrieve comments. #32
Closed
Description
Currently, this parser uses the scanner of TypeScript to retrieve comments. And there is an issue:
For example, we have code like this (please ignore the syntax highlight from GitHub):
let jsx = <div>//not a comment</div>
As we can see above, the text in the div
tag is JSXText
, however, the typescript-estree
regards it as comment and adds it to the comments
property. Note that this only affected on the comments
property if the comments
option is on, while the AST and the tokens
property work fine.
Metadata
Metadata
Assignees
Labels
No labels