Commit Graph

4 Commits

Author SHA1 Message Date
강동윤
e448a8910c
Fix bugs ()
- The parser now supports parsing optional patterns in .d.ts files (Closes )
 - The source map is handled properly (Closes , Closes )
2020-03-09 21:18:41 +09:00
강동윤
ea610c6ded
Typescript & parser for decorators
swc_atoms:
 - add some atoms

swc_ecma_ast:
 - ast nodes for typescript
 - `ClassMethod` -> `Method`, `ClassMethodKind` -> `MethodKind`
 - private class method / class property
 - use separate type for tagged template literals
 - add `declare` field to `Decl`s
 - make function body optional

swc_ecma_parser:
 - rename Type to TokenContext
 - support decorators
 Note: error reporting for invalid decorator is not implemented yet
 - merge `Config` into `Syntax`
 - Use DiagnosticBuilder for error type
This is to make backtracking cheaper.

swc_ecma_transforms:
 - add `strip` pass
2019-01-07 19:43:47 +09:00
강동윤
5cf15cb40f
Fix tests by updating references () 2018-11-14 21:36:37 +09:00
강동윤
f9be576e02
Ecmascript codegen ()
Comment is not fully supported yet
2018-10-25 13:17:05 +09:00