phaser/tasks/jsdoc-plugins/p2completeclass.js
vulvulune af1345c39e Improve d.ts comments generation
-Improve the script to clean the different kinds of end of line
-Improve the alignement with @return multiline comments
-Add a jsdoc plugin to convert the class name of p2.js file, like this
the comments for the p2 classes are now included in the d.ts files.
2015-01-21 11:42:56 +01:00

14 lines
No EOL
383 B
JavaScript

/**
* Add Phaser.Physics.P2 before the class name in the p2.js file
*/
var path = require('path');
exports.handlers = {};
exports.handlers.newDoclet = function (e) {
var doclet = e.doclet;
if ((doclet.meta.filename === "p2.js") && (doclet.kind === 'class' || doclet.kind === 'interface'))
{
doclet.longname = "Phaser.Physics.P2." + doclet.longname;
}
};