Merge pull request #10543 from MoonE/jsdoc-api-mustnothavevalue

@api tag must not have a value.
This commit is contained in:
Andreas Hocevar
2020-01-20 09:33:28 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
*/ */
exports.defineTags = function(dictionary) { exports.defineTags = function(dictionary) {
dictionary.defineTag('api', { dictionary.defineTag('api', {
mustHaveValue: false, mustNotHaveValue: true,
canHaveType: false, canHaveType: false,
canHaveName: false, canHaveName: false,
onTagged: function(doclet, tag) { onTagged: function(doclet, tag) {

View File

@@ -5,7 +5,7 @@
exports.defineTags = function(dictionary) { exports.defineTags = function(dictionary) {
dictionary.defineTag('inheritDoc', { dictionary.defineTag('inheritDoc', {
mustHaveValue: false, mustNotHaveValue: true,
canHaveType: false, canHaveType: false,
canHaveName: false, canHaveName: false,
onTagged: function(doclet, tag) { onTagged: function(doclet, tag) {

View File

@@ -6,7 +6,7 @@ exports.defineTags = function(dictionary) {
const classTag = dictionary.lookUp('class'); const classTag = dictionary.lookUp('class');
dictionary.defineTag('interface', { dictionary.defineTag('interface', {
mustHaveValue: false, mustNotHaveValue: true,
onTagged: function(doclet, tag) { onTagged: function(doclet, tag) {
classTag.onTagged.apply(this, arguments); classTag.onTagged.apply(this, arguments);
doclet.virtual = true; doclet.virtual = true;