Skip to content

Commit bebc700

Browse files
Fix class leading comments order
1 parent d4f5e44 commit bebc700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ exports.astNodeVisitor = {
216216
comment.value.indexOf('@classdesc') !== -1 ||
217217
!noClassdescRegEx.test(comment.value)
218218
) {
219-
node.leadingComments.push(comment);
219+
node.leadingComments.unshift(comment);
220220
node.parent.leadingComments.splice(i, 1);
221221
const ignore =
222222
parser.astBuilder.build('/** @ignore */').comments[0];

0 commit comments

Comments
 (0)