mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
30af06bb70
swc_ecmascript: - add `ExprStmt`. - change type of regex.expression and regex.flags.
25 lines
273 B
JavaScript
25 lines
273 B
JavaScript
(a)=>b
|
|
; // 1 args
|
|
|
|
(a, b)=>c
|
|
; // n args
|
|
|
|
()=>b
|
|
; // 0 args
|
|
|
|
(a)=>(b)=>c
|
|
; // func returns func returns func
|
|
|
|
(a)=>((b)=>c
|
|
)
|
|
; // So these parens are dropped
|
|
|
|
()=>(b, c)=>d
|
|
; // func returns func returns func
|
|
|
|
(a)=>{
|
|
return b;
|
|
};
|
|
(a)=>'e'
|
|
; // Dropping the parens
|