mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
ba0c7c908c
# 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
19 lines
115 B
JavaScript
19 lines
115 B
JavaScript
(a)=>b
|
|
;
|
|
(a, b)=>c
|
|
;
|
|
()=>b
|
|
;
|
|
(a)=>(b)=>c
|
|
;
|
|
(a)=>((b)=>c
|
|
)
|
|
;
|
|
()=>(b, c)=>d
|
|
;
|
|
(a)=>{
|
|
return b;
|
|
};
|
|
(a)=>'e'
|
|
;
|