Add base classes to info.json and generated externs

This ensures that the inheritance chain is intact, even if the base
class is not exportable.
This commit is contained in:
Andreas Hocevar
2014-08-28 19:02:49 +02:00
parent bc2044d48b
commit f724cb65bc
4 changed files with 54 additions and 26 deletions

View File

@@ -0,0 +1,16 @@
/**
* Handle the interface and abstract annotations.
* @param {Object} dictionary The tag dictionary.
*/
exports.defineTags = function(dictionary) {
var classTag = dictionary.lookUp('class');
dictionary.defineTag('interface', {
mustHaveValue: false,
onTagged: function(doclet, tag) {
classTag.onTagged.apply(this, arguments);
doclet.virtual = true;
}
});
};