empty_paren_comment.js 563 B

1234567891011121314151617181920212223242526272829
  1. let f = (/* ... */) => {}
  2. (function (/* ... */) {})(/* ... */)
  3. function f(/* ... */) {}
  4. const obj = {
  5. f(/* ... */) {},
  6. f: (/* ... */) => {},
  7. f: function(/* ... */) {},
  8. f: function f(/* ... */) {}
  9. }
  10. class Foo {
  11. f(/* ... */) {}
  12. f() /* ... */ {}
  13. f = (/* ... */) => {};
  14. static f(/* ... */) {};
  15. static f = (/* ... */) => {};
  16. static f = function(/* ... */) {};
  17. static f = function f(/* ... */) {};
  18. }
  19. f(/* ... */);
  20. f(a, /* ... */);
  21. f(a, /* ... */ b);
  22. f(/* ... */ a, b);
  23. let f = () => import(a /* ... */);
  24. let f = () => doThing(a, /* ... */ b);