From 44df2ede7eb1d95b1acb463488b6b2be5a0d1b8d Mon Sep 17 00:00:00 2001 From: Michael Mathews Date: Sat, 10 Jul 2010 09:24:16 +0100 Subject: [PATCH] The namepath connector for inner symbols changed from - to ~. Added type to @exception. --- modules/jsdoc/doclet.js | 6 +++++- modules/jsdoc/tagdictionary.js | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/jsdoc/doclet.js b/modules/jsdoc/doclet.js index a90a74d9..74d47ebe 100644 --- a/modules/jsdoc/doclet.js +++ b/modules/jsdoc/doclet.js @@ -263,7 +263,6 @@ tagAbout = tagDictionary.lookUp(tags[i].name); if (tagAbout.setsDocletAccess) { -print('>>>> set access to '+tags[i].name); tags[tags.length] = parse_tag.fromText('access '+tags[i].name); } @@ -271,6 +270,11 @@ print('>>>> set access to '+tags[i].name); tags[tags.length] = parse_tag.fromText(tagAbout.impliesTag); } + if (tagAbout.setsDocletDesc) { + tags[tags.length] = parse_tag.fromText('desc '+tags[i].desc); + print('>>> tag desc is '+tags[i].toSource()); + } + if (tags[i].name === 'name') { if (name && name !== tags[i].value) { throw new DocTagConflictError('Conflicting names in documentation: "'+name+'", and "'+tags[i].value+'"'); diff --git a/modules/jsdoc/tagdictionary.js b/modules/jsdoc/tagdictionary.js index 8a083866..c6a74e54 100644 --- a/modules/jsdoc/tagdictionary.js +++ b/modules/jsdoc/tagdictionary.js @@ -51,6 +51,7 @@ TagDefinition.prototype = { isExported : false, // this tag should appear as a top level property in the doclet? setsDocletIsa : false, // the name of this tag is used to define the doclet's isa property + setsDocletDesc : false, setsDocletName : false, // this tag can be used to name the doclet setsDocletAccess: false, // the name of this tag becomes the access of the doclet setsDocletType : false, // the type of this tag becomes th type of the doclet @@ -167,6 +168,7 @@ */ new TagDefinition('file', { //t setsDocletIsa: true, + setsDocletDesc: true, setsDocletName: true, setsDocletDocspace: true });