Content-Length: 267310 | pFad | https://github.com/microsoft/TypeScript/issues/4897

E0 Parsing+generating TypeScript? - à la Esprima · Issue #4897 · microsoft/TypeScript · GitHub
Skip to content

Parsing+generating TypeScript? - à la Esprima #4897

@SamuelMarks

Description

@SamuelMarks

Here's the closest thing I could find: https://github.com/Diullei/esprima-typeScript

But it hasn't been maintained for >2 years. I'm using TypeScript for one of my projects, but I need to develop code-generators to make everything flow correctly.

How can I:

  1. Parse a TypeScript file into an AST
  2. Manipulate that AST
  3. Emit a replacement TypeScript file

Thanks for all info :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/microsoft/TypeScript/issues/4897

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy