mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +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
43 lines
461 B
JavaScript
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
|
|
;
|