* fix flow_function_parentheses * fix directives * fix classes * fix flow_method * fix `do` * fix `decorators` * fix `comments_closure_typecast` * fix `comments` * fix `flow_internal_slot` * fix `flow_comments` * fix `flow_type_declarations` * fix `flow_type_spread` * fix `functional_composition` * fix `multiparser_js_css` * fix `no-semi` * fix `objects` * fix `template` * fix `yield` * update `flow_method` snap * fix `empty_paren_comment` * fix `mdx` * fix `object_property_comment` * Update `@babel/parser` * Update @babel/parser to v7.6.2 * Update yarn.lock * fix `nullish_coalescing` test * fix `flow_class_field` test * fix snapshot * @babel/parser v7.6.3 * fix tests * update snap
67 lines
606 B
JavaScript
67 lines
606 B
JavaScript
let obj1 = // Comment
|
|
{
|
|
key: 'val'
|
|
}
|
|
|
|
let obj2 // Comment
|
|
= {
|
|
key: 'val'
|
|
}
|
|
|
|
let obj3 = { // Comment
|
|
key: 'val'
|
|
}
|
|
|
|
let obj4 = {
|
|
// Comment
|
|
key: 'val'
|
|
}
|
|
|
|
let obj5 = // Comment
|
|
[
|
|
'val'
|
|
]
|
|
|
|
let obj6 // Comment
|
|
= [
|
|
'val'
|
|
]
|
|
|
|
let obj7 = [ // Comment
|
|
'val'
|
|
]
|
|
|
|
let obj8 = [
|
|
// Comment
|
|
'val'
|
|
]
|
|
|
|
let obj9 = // Comment
|
|
`val`;
|
|
|
|
let obj10 = // Comment
|
|
`
|
|
val
|
|
val
|
|
`;
|
|
|
|
let obj11 = // Comment
|
|
tag`val`;
|
|
|
|
let obj12 = // Comment
|
|
tag`
|
|
val
|
|
val
|
|
`;
|
|
|
|
let // Comment
|
|
foo1 = 'val';
|
|
|
|
let // Comment
|
|
foo2 = 'val',
|
|
bar = 'val';
|
|
|
|
const foo3 = 123
|
|
// Nothing to see here.
|
|
;["2", "3"].forEach(x => console.log(x))
|