Files
Nicolò RibaudoandGitHub ca632a3fc2 Compress output for optional chain with multiple ?. (#15740)
* Compress output for optional chain with multiple `?.`

* Shorter output for optional delete

* Use a single temp variable per optional chain
2023-07-04 08:36:21 +02:00

15 lines
594 B
JavaScript

function f(a = (_x => (_x = x) === null || _x === void 0 ? void 0 : _x.y)()) {}
function g({
a,
b = a === null || a === void 0 ? void 0 : a.c
}) {}
function h(a, {
b = (_a$b => (_a$b = a.b) === null || _a$b === void 0 || (_a$b = _a$b.c) === null || _a$b === void 0 ? void 0 : _a$b.d.e)()
}) {}
function i(a, {
b = (_a$b2 => (_a$b2 = a.b) === null || _a$b2 === void 0 || (_a$b2 = _a$b2.c) === null || _a$b2 === void 0 ? void 0 : _a$b2.d)().e
}) {}
function j(a, {
b = (_a$b3 => a === null || a === void 0 || (_a$b3 = a.b) === null || _a$b3 === void 0 ? void 0 : _a$b3.c().d.e)()
}) {}