Files
test-repo/tests/class_comment/comments.js
T
Christopher Chedeau 61482662cc Migrate class comments to the beginning (#831)
Instead of trying to figure out a complicated way to preserve their correct position, it's easier to just migrate those comments before the class.

Fixes #693
Fixes #694
2017-02-28 11:23:15 -05:00

26 lines
410 B
JavaScript

class A // comment 1
// comment 2
extends B {}
class A extends B // comment1
// comment2
// comment3
{}
class A /* a */ extends B {}
class A extends B /* a */ {}
class A extends /* a */ B {}
(class A // comment 1
// comment 2
extends B {});
(class A extends B // comment1
// comment2
// comment3
{});
(class A /* a */ extends B {});
(class A extends B /* a */ {});
(class A extends /* a */ B {});