mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
use throws as the primary name and exception as the synonym
This commit is contained in:
parent
be60e811eb
commit
2107d463da
@ -380,17 +380,6 @@ exports.defineTags = function(dictionary) {
|
||||
}
|
||||
});
|
||||
|
||||
dictionary.defineTag('exception', {
|
||||
mustHaveValue: true,
|
||||
canHaveType: true,
|
||||
onTagged: function(doclet, tag) {
|
||||
if (!doclet.exceptions) { doclet.exceptions = []; }
|
||||
doclet.exceptions.push(tag.value);
|
||||
setDocletTypeToValueType(doclet, tag);
|
||||
}
|
||||
})
|
||||
.synonym('throws');
|
||||
|
||||
dictionary.defineTag('exports', {
|
||||
mustHaveValue: true,
|
||||
onTagged: function(doclet, tag) {
|
||||
@ -698,6 +687,17 @@ exports.defineTags = function(dictionary) {
|
||||
}
|
||||
});
|
||||
|
||||
dictionary.defineTag('throws', {
|
||||
mustHaveValue: true,
|
||||
canHaveType: true,
|
||||
onTagged: function(doclet, tag) {
|
||||
if (!doclet.exceptions) { doclet.exceptions = []; }
|
||||
doclet.exceptions.push(tag.value);
|
||||
setDocletTypeToValueType(doclet, tag);
|
||||
}
|
||||
})
|
||||
.synonym('exception');
|
||||
|
||||
dictionary.defineTag('tutorial', {
|
||||
mustHaveValue: true,
|
||||
onTagged: function(doclet, tag) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user