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
08fcd48
..
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,7
+12,7
@@
DocTag = imports.DocTag.DocTag;
*/
*/
-DocComment = XObject.define(
+
const
DocComment = XObject.define(
function(/**String*/comment) {
this.isUserComment = true;
function(/**String*/comment) {
this.isUserComment = true;
@@
-26,31
+26,24
@@
DocComment = XObject.define(
},
Object, // extends
{
},
Object, // extends
{
- this.isUserComment = true;
- this.src = "";
- this.meta = "";
- t
his.tagTexts = [];
- t
his.tags = [];
+ isUserComment : true,
+ src : "",
+ meta : "",
+ t
agTexts : [],
+ t
ags : [],
/**
* serialize..
*/
/**
* serialize..
*/
- to
Object
:function(t)
+ to
JSON
:function(t)
{
{
- function array2object(a , m)
- {
- m = m || false;
- var r = [];
- a.forEach(function(e) {
- r.push(m ? e : e.toObject());
- })
- }
- var ret = { };
+
+ var ret = { '*object' : 'DocComment' };
+
var _this = this;
['isUserComment','src', 'meta', 'tags'].forEach(function(k) {
ret[k] = _this[k];
})
var _this = this;
['isUserComment','src', 'meta', 'tags'].forEach(function(k) {
ret[k] = _this[k];
})
- ret.tags = array2object(this.tags,true);
return ret;
},
return ret;
},