JSDOC/DocComment.js
[gnome.introspection-doc-generator] / JSDOC / DocComment.js
index 41f9efe..ca7d001 100644 (file)
@@ -19,16 +19,34 @@ DocComment = XObject.define(
         this.src           = "";
         this.meta          = "";
         this.tagTexts      = [];
-        this.tags          = [];
+        this.tags          = []; // array of doctags..
         if (typeof comment != "undefined") {
             this.parse(comment);
         }
     }, 
     Object, // extends
     {
-             
+        isUserComment : true,
+        src           : "",
+        meta          : "",
+        tagTexts      : [],
+        tags          : [],     
     
-        
+        /**
+         * serialize..
+         */
+        toObject :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
         */
@@ -183,6 +201,8 @@ DocComment = XObject.define(
 });
 
 
+/// static methods..
+
 XObject.extend(DocComment, 
     {