projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/CompressWhite.vala
[gnome.introspection-doc-generator]
/
JSDOC
/
DocComment.js
diff --git
a/JSDOC/DocComment.js
b/JSDOC/DocComment.js
index
a21d863
..
42201ab
100644
(file)
--- a/
JSDOC/DocComment.js
+++ b/
JSDOC/DocComment.js
@@
-1,8
+1,8
@@
//<Script type="text/javascript">
//<Script type="text/javascript">
-XObject = imports.XObject.XObject;
+
const
XObject = imports.XObject.XObject;
-DocTag = imports.DocTag.DocTag;
+
const
DocTag = imports.DocTag.DocTag;
/**
* Create a new DocComment. This takes a raw documentation comment,
/**
* Create a new DocComment. This takes a raw documentation comment,
@@
-12,23
+12,41
@@
DocTag = imports.DocTag.DocTag;
*/
*/
-DocComment = XObject.define(
+
const
DocComment = XObject.define(
function(/**String*/comment) {
this.isUserComment = true;
this.src = "";
this.meta = "";
this.tagTexts = [];
function(/**String*/comment) {
this.isUserComment = true;
this.src = "";
this.meta = "";
this.tagTexts = [];
- this.tags = [];
+ this.tags = [];
// array of doctags..
if (typeof comment != "undefined") {
this.parse(comment);
}
},
Object, // extends
{
if (typeof comment != "undefined") {
this.parse(comment);
}
},
Object, // extends
{
-
+ isUserComment : true,
+ src : "",
+ meta : "",
+ tagTexts : [],
+ tags : [],
-
+ /**
+ * serialize..
+ */
+ toJSON :function(t)
+ {
+
+ var ret = { '*object' : 'DocComment' };
+
+ var _this = this;
+ ['isUserComment','src', 'meta', 'tags'].forEach(function(k) {
+ ret[k] = _this[k];
+ })
+
+ return ret;
+ },
/**
* @requires JSDOC.DocTag
*/
/**
* @requires JSDOC.DocTag
*/