projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d00310
)
JSDOC/DocTag.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 07:47:47 +0000
(15:47 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 07:47:47 +0000
(15:47 +0800)
JSDOC/DocTag.js
patch
|
blob
|
history
diff --git
a/JSDOC/DocTag.js
b/JSDOC/DocTag.js
index
092a9ee
..
e9137d7
100644
(file)
--- a/
JSDOC/DocTag.js
+++ b/
JSDOC/DocTag.js
@@
-3,6
+3,8
@@
XObject = imports.XObject.XObject;
XObject = imports.XObject.XObject;
+Options = imports.Options.Options;
+
DocTag = imports.DocTag.DocTag;
/**
* DocTag - represents a single A=b tag.
DocTag = imports.DocTag.DocTag;
/**
* DocTag - represents a single A=b tag.
@@
-31,12
+33,12
@@
DocTag = XObject.define(
isOptional : false,
defaultValue : '',
desc : '',
isOptional : false,
defaultValue : '',
desc : '',
-
+ /* qdump needed for cahcing?
toQDump :function(t)
{
return JSDOC.toQDump(t, 'JSDOC.DocTag.fromDump({', '})', new JSDOC.DocTag());
} ,
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);
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);
src = this.nibbleType(src);
@@
-60,7
+62,7
@@
DocTag = XObject.define(
}
}
catch(e) {
}
}
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
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();
// 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
*/
@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*\{/)) {
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);
for (var i in t) {
if (typeof(ns[i]) == "undefined") {
println("ERR:no default for DocTag:"+ i);