X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FDocTag.js;h=0a6dbee817de4788d0c411e5151e9e6a9063a2a8;hb=2a10119befba6ac7ea16a3df614a64078890158d;hp=092a9ee5c7bfce4dc4b2bb49bd51793a9f9fda15;hpb=7d00310a076975bf46a6c818dbe6e568b776c0f6;p=gnome.introspection-doc-generator diff --git a/JSDOC/DocTag.js b/JSDOC/DocTag.js index 092a9ee..0a6dbee 100644 --- a/JSDOC/DocTag.js +++ b/JSDOC/DocTag.js @@ -3,7 +3,9 @@ XObject = imports.XObject.XObject; -DocTag = imports.DocTag.DocTag; +Options = imports.Options.Options; + + /** * DocTag - represents a single A=b tag. * @class DocTag @@ -31,12 +33,12 @@ DocTag = XObject.define( isOptional : false, defaultValue : '', desc : '', - + /* qdump needed for cahcing? toQDump :function(t) { return JSDOC.toQDump(t, 'JSDOC.DocTag.fromDump({', '})', new JSDOC.DocTag()); } , - + */ /** @@ -48,9 +50,9 @@ DocTag = XObject.define( try { src = this.nibbleTitle(src); - if (JSDOC.PluginManager) { - JSDOC.PluginManager.run("onDocTagSynonym", this); - } + //if (JSDOC.PluginManager) { + // JSDOC.PluginManager.run("onDocTagSynonym", this); + // } src = this.nibbleType(src); @@ -60,7 +62,7 @@ DocTag = XObject.define( } } catch(e) { - if (JSDOC.opt.LOG) JSDOC.opt.LOG.warn(e); + if (Options.LOG) Options.warn(e); else throw e; } this.desc = src; // whatever is left @@ -68,9 +70,9 @@ DocTag = XObject.define( // example tags need to have whitespace preserved if (this.title != "example") this.desc = this.desc.trim(); - if (JSDOC.PluginManager) { - JSDOC.PluginManager.run("onDocTag", this); - } + //if (JSDOC.PluginManager) { + // JSDOC.PluginManager.run("onDocTag", this); + //} }, /** @@ -104,7 +106,8 @@ DocTag = XObject.define( @param {string} src @return src */ - nibbleType : function(src) { + nibbleType : function(src) + { if (typeof src != "string") throw "src must be a string not "+(typeof src); if (src.match(/^\s*\{/)) { @@ -163,10 +166,10 @@ DocTag = XObject.define( } }); - -JSDOC.DocTag.fromDump = function(t) +// cached support? +DocTag.fromDump = function(t) { - var ns = new JSDOC.DocTag(); + var ns = new DocTag(); for (var i in t) { if (typeof(ns[i]) == "undefined") { println("ERR:no default for DocTag:"+ i);