swc/ecmascript/codegen/tests/references/18cc9a6b7038070f.js
강동윤 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

43 lines
461 B
JavaScript

(function(a) {
});
(function([a]) {
});
(function([a, b]) {
});
(function([[a]]) {
});
(function([[a, b]]) {
});
(function([a, [b]]) {
});
(function([[b], a]) {
});
(function({ a }) {
});
(function({ a , b }) {
});
(function([{ a }]) {
});
(function([{ a , b }]) {
});
(function([a, { b }]) {
});
(function([{ b }, a]) {
});
([a])=>{
};
([a, b])=>{
};
({ a })=>{
};
({ a , b , c , d , e })=>{
};
([a])=>b
;
([a, b])=>c
;
({ a })=>b
;
({ a , b })=>c
;