Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Phase 3: Attach comments #31

@nzakas

Description

@nzakas

Phase 3 is to add attaching leading/trailing comments to the AST inside the parser. This would involve:

  1. Retrieving comments for each node.
  2. Converting the TypeScript comments into Esprima-style comments.
  3. Adding the comments into leadingComments and trailingComments arrays on appropriate nodes.
  4. Making the result pass the tests that are already tests in tests/fixtures/attach-comments.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions