JSDOC/Symbol.js
[gnome.introspection-doc-generator] / JSDOC / Symbol.js
index 991e35b..be18fab 100644 (file)
@@ -29,7 +29,7 @@ Symbol = XObject.define(
         augments : false, // Doctag
         author : "",
         classDesc : "",
-        comment : { isUserComment: false },
+        comment : {},
         deprecated : "",
         desc : "",
         events : [],
@@ -66,12 +66,12 @@ Symbol = XObject.define(
         toObject : function()
         {
             
-            function array2object(a , m)
+            function array2object(a)
             {
                 m = m || false;
                 var r = [];
                 a.forEach(function(e) {
-                    r.push(m ? e : e.toObject());
+                    r.push(e.toObject());
                 })
             }
             
@@ -92,6 +92,7 @@ Symbol = XObject.define(
                                 
                             //objects..
                             case 'augments' : 
+                            case 'comment' :
                                 print(JSON.stringify(this[i]));
                                 ret[i] = this[i].toObject();
                                 continue;
@@ -116,46 +117,28 @@ Symbol = XObject.define(
         
         init : function() 
         {
-            this.name = "";
-            this.defaultValue = "";
+            // only initialize arrays / objects..
             this.params = [];
             this.$args = [];
-            this.addOn = "";
-            this.alias = "";
-            this.augments = [];
-            this.author = "";
-            this.classDesc = "";
-            this.comment = { isUserComment: false };
-            //this.defaultValue = null;
-            this.deprecated = "";
-            this.desc = "";
+            
             this.events = [];
-            this.example = "";
             this.exceptions = [];
             this.inherits = [];
             this.inheritsFrom = [];
             this.isa = "OBJECT"; // OBJECT//FUNCTION
-            this.isEvent = false;
-            this.isConstant = false;
-            this.isIgnored = false;
-            this.isInner = false;
-            this.isNamespace = false;
-            this.isPrivate = false;
-            this.isStatic = false;
-            this.memberOf = "";
             this.methods = [];
-            this._name = "";
             this._params = [];
             this.properties = [];
             this.requires = [];
             this.returns = [];
             this.see = [];
-            this.since = "";
             this.srcFile = {};
-            this.type = "";
-            this.version = "";
             this.childClasses = [];
             this.cfgs = {};
+            
+            this.comment = new DocComment();
+            this.comment.isUserComment =  false;
+            
                
         },