* 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
62 lines
1.1 KiB
JavaScript
62 lines
1.1 KiB
JavaScript
function a(/* comment */) {} // comment
|
|
function b() {} // comment
|
|
function c(/* comment */ argA, argB, argC) {} // comment
|
|
call((/*object*/ row) => {});
|
|
KEYPAD_NUMBERS.map(num => ( // Buttons 0-9
|
|
<div />
|
|
));
|
|
|
|
function f1 /* f */() {}
|
|
function f2 (/* args */) {}
|
|
function f3 () /* returns */ {}
|
|
function f4 /* f */(/* args */) /* returns */ {}
|
|
|
|
function f5 /* f */(/* a */ a) {}
|
|
function f6 /* f */(a /* a */) {}
|
|
function f7 /* f */(/* a */ a) /* returns */ {}
|
|
|
|
const obj = {
|
|
f1 /* f */() {},
|
|
f2 (/* args */) {},
|
|
f3 () /* returns */ {},
|
|
f4 /* f */(/* args */) /* returns */ {},
|
|
};
|
|
|
|
(function f /* f */() {})();
|
|
(function f (/* args */) {})();
|
|
(function f () /* returns */ {})();
|
|
(function f /* f */(/* args */) /* returns */ {})();
|
|
|
|
class C1 {
|
|
f/* f */() {}
|
|
}
|
|
class C2 {
|
|
f(/* args */) {}
|
|
}
|
|
class C3 {
|
|
f() /* returns */ {}
|
|
}
|
|
class C4 {
|
|
f/* f */(/* args */) /* returns */ {}
|
|
}
|
|
|
|
function foo1()
|
|
// this is a function
|
|
{
|
|
return 42
|
|
}
|
|
|
|
function foo2() // this is a function
|
|
{
|
|
return 42
|
|
}
|
|
|
|
function foo3() { // this is a function
|
|
return 42
|
|
}
|
|
|
|
function foo4() {
|
|
// this is a function
|
|
return 42;
|
|
}
|