JSDOC/Symbol.js
[gnome.introspection-doc-generator] / JSDOC / Symbol.js
index fe29b2a..d4dac3a 100644 (file)
@@ -49,10 +49,10 @@ Symbol = XObject.define(
         methods : [], // Symbol[]
         _name : "",
         _params : [], //Doctag[]
-        properties : [],
-        requires : [],
-        returns : [],
-        see : [],
+        properties : [], //Doctag[]
+        requires : [],  //Doctag[]
+        returns : [], //Doctag[]
+        see : [], //Doctag[]
         since : "",
         srcFile : {},
         type : "",
@@ -93,16 +93,32 @@ Symbol = XObject.define(
                             case 'inherits' :
                             case 'methods' :
                             case '_params': 
+                            case 'properties': 
+                            case 'requires':
+                            case 'returns':
+                            case 'see':
                                 ret[i] = array2object(this[i],true); 
                                 continue;
+
                                 
+                            case 'cfgs': // key val of doctags..
+                                ret[i] = {}
+                                for(k in this[i]) {
+                                    ret[i][k] = this[i][k].toObject()
+                                }
+                                continue;
                             //objects..
                             
                             case 'comment' :
                                 print(JSON.stringify(this[i]));
                                 ret[i] = this[i].toObject();
                                 continue;
-                                
+                            
+                            //skip
+                            case 'inheritsFrom':
+                            case 'childClasses':
+                                continue;
+            
                             default:
                                 print("object? :" + i);
                                 Seed.quit();
@@ -130,7 +146,7 @@ Symbol = XObject.define(
             //this.events = [];
             this.exceptions = [];
             this.inherits = [];
-            //this.inheritsFrom = [];
+            //
             this.isa = "OBJECT"; // OBJECT//FUNCTION
             this.methods = [];
             this._params = [];
@@ -139,8 +155,12 @@ Symbol = XObject.define(
             this.returns = [];
             this.see = [];
             this.srcFile = {};
-            this.childClasses = [];
+            
+            
             this.cfgs = {};
+            // derived later?
+            this.inheritsFrom = [];
+            this.childClasses = [];
             
             this.comment = new DocComment();
             this.comment.isUserComment =  false;