-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from Daniel-Knights/fix-class-leading-comments…
…-order Fix class leading comments order
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Import statement required for JSDoc to include first comment as leading comment of the class. | ||
// Otherwise, it gets moved in the AST to the `Program` node from the `ExportNamedDeclaration` class node: | ||
// https://github.com/jsdoc/jsdoc/blob/main/packages/jsdoc-ast/lib/walker.js#L465 | ||
// This itself may be a bug, as it seems to be intended for @module comments. | ||
import ''; // eslint-disable-line | ||
|
||
/* | ||
Comment | ||
*/ | ||
|
||
/** | ||
* Doclet | ||
*/ | ||
export class LeadingComments {} |