* Simplify the special-case printing of single-param arrow functions * Update test fixtures with single-param arrow functions * Add some explicit snapshot tests for known edge-cases
25 lines
430 B
JavaScript
25 lines
430 B
JavaScript
const _foo = foo(),
|
|
{
|
|
s
|
|
} = _foo,
|
|
t = babelHelpers.objectWithoutProperties(_foo, ["s"]);
|
|
|
|
const _bar = bar(),
|
|
{
|
|
s: {
|
|
q1
|
|
}
|
|
} = _bar,
|
|
q2 = babelHelpers.objectWithoutProperties(_bar.s, ["q1"]),
|
|
q3 = babelHelpers.objectWithoutProperties(_bar, ["s"]);
|
|
|
|
const {
|
|
a
|
|
} = foo(_ref => {
|
|
let {
|
|
b
|
|
} = _ref,
|
|
c = babelHelpers.objectWithoutProperties(_ref, ["b"]);
|
|
console.log(b, c);
|
|
});
|