Files
test-repo/tests/format/js/sequence-expression/parenthesized-trailing-comment.js
T

44 lines
739 B
JavaScript

const x1 = (a, b, c /* comment */);
const x12 = (a, b, c) /* comment */;
const x2 = (a = c /* comment */);
const x22 = (a = c) /* comment */;
(a, b, c /* comment */);
(a, b, c) /* comment */;
(a, b, c /* comment */
);
(a, b, c
/* comment */
);
(a = c /* comment */);
(a = c) /* comment */;
(a = c /* comment */
);
(a = c
/* comment */
);
({a} = c /* comment */);
({a} = c
/* comment */
);
({a} = c /* comment */
);
(foo() /* comment */);
(foo()) /* comment */;
(foo()
/* comment */
);
(foo() /* comment */
);
assigned = (a, b, c /* comment */);
assigned = (a, b, c) /* comment */;
// assigned = (a = c /* comment */);
function f() {
return (a, b, c /* comment */);
return (a, b, c) /* comment */;
return (a = c /* comment */);
}