2024-05-13 17:12:23 +00:00
|
|
|
proposal MultiStmt{
|
2024-05-19 17:53:14 +00:00
|
|
|
case Smthn{
|
2024-05-13 17:12:23 +00:00
|
|
|
applicable to{
|
2024-05-15 18:55:03 +00:00
|
|
|
"let <<ident1:Identifier>> = <<funcIdent:Identifier | MemberExpression>>();
|
|
|
|
let <<ident2:Identifier>> = <<expr:Expression>>;
|
2024-05-13 17:12:23 +00:00
|
|
|
"
|
|
|
|
}
|
|
|
|
|
|
|
|
transform to {
|
2024-05-15 18:55:03 +00:00
|
|
|
"const ident2 = () => {
|
|
|
|
let <<ident1>> = <<funcIdent>>();
|
|
|
|
return <<expr>>;
|
2024-05-13 17:12:23 +00:00
|
|
|
}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|