blob: b32183f61f9f9b06ed0744ea0ec4f218dc770e89 [file] [log] [blame]
40 columns |
>>> Block comment before removed trailing comma.
function(argument /* before */,);
<<<
function(argument /* before */);
>>> Block comment after removed comma.
function(argument, /* after */);
<<<
function(argument /* after */);
>>> Block comments before and after removed comma.
f(argument /* before */, /* after */);
<<<
f(argument /* before */ /* after */);
>>> Block comment before non-trailing comma.
function(veryLongArgument, veryLongArgument /* before */, argument);
<<<
function(
veryLongArgument,
veryLongArgument /* before */,
argument,
);
>>> Block comment after non-trailing comma.
function(veryLongArgument, veryLongArgument, /* after */ argument);
<<<
function(
veryLongArgument,
veryLongArgument,
/* after */ argument,
);
>>> Block comment before and after non-trailing comma.
function(veryLongArgument, argument /* before */ , /* after */ argument);
<<<
function(
veryLongArgument,
argument /* before */,
/* after */ argument,
);
>>> Block comment before preserved trailing comma.
function(veryLongArgument, veryLongArgument /* before */,);
<<<
function(
veryLongArgument,
veryLongArgument /* before */,
);
>>> Block comment after preserved trailing comma.
function(veryLongArgument, veryLongArgument, /* after */);
<<<
function(
veryLongArgument,
veryLongArgument /* after */,
);
>>> Block comment before and after preserved trailing comma.
function(veryLongArgument, argument /* before */ , /* after */);
<<<
function(
veryLongArgument,
argument /* before */ /* after */,
);
>>> Block comment at inserted comma.
function(veryLongArgument, veryLongArgument /* at */);
<<<
function(
veryLongArgument,
veryLongArgument /* at */,
);
>>> Block comments at inserted comma.
function(veryLongArgument, veryLongArgument /* 1 */ /* 2 */);
<<<
function(
veryLongArgument,
veryLongArgument /* 1 */ /* 2 */,
);
>>> Block comment after comma on different line is leading when unsplit.
function(argument, /* c */
argument);
<<<
function(argument, /* c */ argument);
>>> Block comment after comma on different line isn't leading when split.
function(veryLongArgument, /* c */
veryLongArgument);
<<<
function(
veryLongArgument,
/* c */
veryLongArgument,
);
>>> Line comment before non-trailing comma.
function(argument // before
, another);
<<<
function(
argument, // before
another,
);
>>> Line comment after non-trailing comma.
function(argument, // after
another
);
<<<
function(
argument, // after
another,
);
>>> Line comment on own line before non-trailing comma.
function(argument
// before
, another);
<<<
function(
argument,
// before
another,
);
>>> Line comment on own line after non-trailing comma.
function(argument,
// after
another
);
<<<
function(
argument,
// after
another,
);
>>> Line comment before trailing comma.
function(argument // before
,);
<<<
function(
argument, // before
);
>>> Line comment after trailing comma.
function(argument, // after
);
<<<
function(
argument, // after
);
>>> Line comment on own line before trailing comma.
function(argument
// before
,);
<<<
function(
argument,
// before
);
>>> Line comment on own line after trailing comma.
function(argument,
// after
);
<<<
function(
argument,
// after
);