blob: e8bbd8b3e758765a2986241a94b95ab29c8c4528 [file] [log] [blame]
40 columns |
(experiment null-aware-elements)
>>> Inline comment after `?`.
var list = [ ? /* c */ x ];
<<< 3.8
var list = [? /* c */ x];
>>>
var map = { ? /* c */ key : ? /* c */ value };
<<< 3.8
var map = {
? /* c */ key: ? /* c */ value,
};
>>> Line comment after `?`.
var list = [ ? // c
x ];
<<< 3.8
### This is an odd place for a comment so the formatting is odd, but we want to
### at least pin it down with a test.
var list = [
? // c
x,
];
>>>
var map = { ? // c
key : ? // c
value };
<<< 3.8
### This is an odd place for a comment so the formatting is odd, but we want to
### at least pin it down with a test.
var map = {
? // c
key:
? // c
value,
};
>>> (experiment dot-shorthands) Comment between `?` and `.` of dot shorthand.
var list = [
? /* c */ . property ,
? // c
. invocation ( ) ,
? /// c
. new ( ) ,
];
<<< 3.10
var list = [
? /* c */ .property,
? // c
.invocation(),
?
/// c
.new(),
];