This website requires JavaScript.
Explore
Help
Sign In
swc-project
/
swc
Watch
1
Star
1
Fork
0
You've already forked swc
mirror of
https://github.com/swc-project/swc.git
synced
2024-12-20 04:01:39 +03:00
Code
Issues
Actions
2
Packages
Projects
Releases
Wiki
Activity
f9a649ff7a
swc
/
ecmascript
/
codegen
/
tests
/
references
/
9681f5d844d7acd0.js
19 lines
115 B
JavaScript
Raw
Normal View
History
Unescape
Escape
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 17:56:16 +03:00
(
a
)
=>
b
;
(
a
,
b
)
=>
c
;
(
)
=>
b
;
(
a
)
=>
(
b
)
=>
c
;
(
a
)
=>
(
(
b
)
=>
c
)
;
(
)
=>
(
b
,
c
)
=>
d
;
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 13:40:46 +03:00
(
a
)
=>
{
return
b
;
Ecmascript codegen (#40) Comment is not fully supported yet
2018-10-25 07:17:05 +03:00
}
;
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 17:56:16 +03:00
(
a
)
=>
'e'
;
Reference in New Issue
Copy Permalink