XObject = imports.XObject.XObject;
+Options = imports.Options.Options;
+
DocTag = imports.DocTag.DocTag;
/**
* DocTag - represents a single A=b tag.
isOptional : false,
defaultValue : '',
desc : '',
-
+ /* qdump needed for cahcing?
toQDump :function(t)
{
return JSDOC.toQDump(t, 'JSDOC.DocTag.fromDump({', '})', new JSDOC.DocTag());
} ,
-
+ */
/**
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);
}
}
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
// 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);
+ //}
},
/**
@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*\{/)) {
}
});
-
-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);