swc/ecmascript/codegen/tests/references/9681f5d844d7acd0.js
강동윤 ba0c7c908c
Improve swc_ecma_trnasforms ()
# 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

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'
;