Skip to content

armsnyder/typescript-ast-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript AST

This library provides a way to parse TypeScript source code into an abstract syntax tree (AST) in Golang. The packages are laid out similar to the standard go library.

Package Documentation

The main two packages are:

  • parser: Parse TypeScript source code into an AST.
  • ast: The AST nodes and visitor for TypeScript source code.

This library was originally created in order to parse TypeScript type definitions specifically for the Language Server Protocol Specification. As a result, it is not feature complete and may not work for all TypeScript source code.