Files
test-repo/tests/import/comments.js
T
Davy Duperron 748dcbf70d Fix import declaration comments (#1030)
* Add handleImportDeclarationComments function.

* Fix indent.

* Update test cases accordingly.

* Implement better heuristic for adding comments.

* Make the test case more exhaustive.
2017-03-17 08:11:43 -07:00

33 lines
398 B
JavaScript

import { a //comment1
//comment2
//comment3
as b} from "";
import {
a as //comment1
//comment2
//comment3
b
} from "";
import {
a as //comment2 //comment1
//comment3
b
} from "";
import {
a as //comment3 //comment2 //comment1
b
} from "";
import {
// comment 1
FN1, // comment 2
/* comment 3 */ FN2,
// FN3,
FN4 /* comment 4 */
// FN4,
// FN5
} from "./module";