Files
test-repo/tests/decorators/comments.js
T
Christopher Chedeau 383aaca0e4 Fix decorators location (#1779)
Babylon has a bug (I guess) with locations for classes where decorators are involved. Instead of the class starting at the first decorator, it starts at the beginning of the `class` keyword. By moving the location to the first comment, it solves --some-- of the issues with decorator comments.
2017-05-27 14:51:00 -07:00

11 lines
100 B
JavaScript

var x = 100
@Hello({
a: 'a', // Comment is in the wrong place
// test
b: '2'
})
class X {
}