Handle interfaces in the generate-externs task

This commit is contained in:
Andreas Hocevar
2014-08-27 16:13:12 +02:00
parent 4e8abb62f9
commit e560f529c6
4 changed files with 31 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
/**
* Handle the interface annotation.
* @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.interface = true;
}
});
};