mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Plugins: Created processingComplete event
The processingComplete event fires after all processing has been done. It gets the entire docs as its only parameter.
This commit is contained in:
parent
a9a2ceff79
commit
d4ee1d324e
2
jsdoc.js
2
jsdoc.js
@ -237,6 +237,8 @@ function main() {
|
|||||||
jsdoc.augment.addInherited(docs);
|
jsdoc.augment.addInherited(docs);
|
||||||
jsdoc.borrow.resolveBorrows(docs);
|
jsdoc.borrow.resolveBorrows(docs);
|
||||||
|
|
||||||
|
app.jsdoc.parser.fireProcessingComplete(docs);
|
||||||
|
|
||||||
if (env.opts.explain) {
|
if (env.opts.explain) {
|
||||||
dump(docs);
|
dump(docs);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|||||||
@ -97,6 +97,10 @@ exports.Parser.prototype.parse = function(sourceFiles, encoding) {
|
|||||||
return this._resultBuffer;
|
return this._resultBuffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.Parser.prototype.fireProcessingComplete = function(docs) {
|
||||||
|
this.emit('processingComplete', docs);
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {Array<Doclet>} The accumulated results of any calls to parse.
|
* @returns {Array<Doclet>} The accumulated results of any calls to parse.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -19,7 +19,8 @@ var events = conf.include || [
|
|||||||
'symbolFound',
|
'symbolFound',
|
||||||
'newDoclet',
|
'newDoclet',
|
||||||
'fileComplete',
|
'fileComplete',
|
||||||
'parseComplete'
|
'parseComplete',
|
||||||
|
'processingComplete'
|
||||||
];
|
];
|
||||||
// Don't dump the excluded parser events
|
// Don't dump the excluded parser events
|
||||||
if (conf.exclude) {
|
if (conf.exclude) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user