-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a flag to document all exported bindings
This adds a boolean flag called `document-exported` (defaults to false) that effectively adds an empty comment to all exported bindings that do not already have a JSDoc comment. It also does the same for the members of exported classes and objects. ```js export class C { method() {} } ``` Both `C` and `C#method` are now part of the generated documentation. Related to #424
- Loading branch information
Showing
14 changed files
with
853 additions
and
62 deletions.
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
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,33 @@ | ||
export class Class { | ||
classMethod() {} | ||
get classGetter() {} | ||
set classSetter(v) {} | ||
static staticMethod() {} | ||
static get staticGetter() {} | ||
static set staticSetter(v) {} | ||
} | ||
|
||
export var object = { | ||
method() {}, | ||
get getter() {}, | ||
set setter(v) {}, | ||
prop: 42, | ||
func: function() {}, | ||
}; | ||
|
||
class NotExportedClass { | ||
classMethod() {} | ||
get classGetter() {} | ||
set classSetter(v) {} | ||
static staticMethod() {} | ||
static get staticGetter() {} | ||
static set staticSetter(v) {} | ||
} | ||
|
||
var notExportedObject = { | ||
method() {}, | ||
get getter() {}, | ||
set setter(v) {}, | ||
prop: 42, | ||
func: function() {}, | ||
}; |
Oops, something went wrong.