Skip to content
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
@g-plane

Description

@g-plane

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions