강동윤
|
ba0c7c908c
|
Improve swc_ecma_trnasforms (#127)
# swc_ecma_ast
- Add PrivateName to Expr
# swc_ecma_parser
- Fix parsing of private name
# swc_ecma_transforms
## Hygiene
- It correctly tracks `BindingIdentifer` / `IdentifierReference`
- Preserve `IdentiferReference` if it conflicts with a `BindingIdentifier`
## Block scoping
- It correctly tracks `BindingIdentifer` / `IdentifierReference`
## Fixer
- It removes useless parens.
- It removes useless `IdentiferReference`s in comma expressions.
## Classes properties
- public prooperty
- private property
## Class decorators
- implemented
|
2019-01-29 23:56:16 +09:00 |
|
강동윤
|
9a5de4beb6
|
More transcompilers (#49)
transforms:
- implement String.length simplifier
- implement more arithmetic operations
- new Date() is side-effect free
- implement left.rhs * right
- optimize `SeqExpr` while creation
- implement es3 - member expression literals pass
- implement es2015 - classes pass
codegen:
- handle infinity correctly
- disable comments for testing (it's buggy)
ast:
- add methods about reserved words
|
2018-11-14 19:40:46 +09:00 |
|
강동윤
|
eb2a2a7f15
|
Fix tests and lints (#44)
- Temporarilly ignored comment codegen tests.
- Split Simplify into SimplifyExpr and SimplifyStmt
- fix lints
|
2018-11-05 13:12:52 +09:00 |
|
강동윤
|
f9be576e02
|
Ecmascript codegen (#40)
Comment is not fully supported yet
|
2018-10-25 13:17:05 +09:00 |
|