JSDOC/SymbolSet.js
[gnome.introspection-doc-generator] / JSDOC / SymbolSet.js
index fdf1e8d..de9245a 100644 (file)
@@ -42,6 +42,7 @@ SymbolSet = XObject.define(
         addSymbol : function(symbol) {
             //print("ADDING SYMBOL:"+symbol.alias.toString());
             
+            
             if (this.hasSymbol(symbol.alias)) {
                 imports.BuildDocs.Options.LOG.warn("Overwriting symbol documentation for: "+symbol.alias + ".");
             }
@@ -66,8 +67,8 @@ SymbolSet = XObject.define(
          */
         toJSON : function() {
             return {
-                _object : 'SymbolSet',
-                _index : this.index
+                '*object' : 'SymbolSet',
+                _index : this._index
             };
             
         },
@@ -98,6 +99,13 @@ SymbolSet = XObject.define(
         resolveBorrows : function() {
             for (p in this._index) {
                 var symbol = this._index[p];
+                
+                if (!symbol.is) {
+                    continue;
+                    print("PROBLEM : " + p);
+                    print(JSON.stringify(symbol, null, 4));
+                   }
+                
                 if (symbol.is("FILE") || symbol.is("GLOBAL")) continue;
                 
                 var borrows = symbol.inherits;
@@ -139,7 +147,11 @@ SymbolSet = XObject.define(
         resolveMemberOf : function() {
             for (var p in this._index) {
                 var symbol = this.getSymbol(p);
-                
+                if (!symbol.is) {
+                    continue;
+                    print("PROBLEM : " + p);
+                    print(JSON.stringify(symbol, null, 4));
+                   }
                 if (symbol.is("FILE") || symbol.is("GLOBAL")) continue;
                 
                 // the memberOf value was provided in the @memberOf tag
@@ -231,8 +243,16 @@ SymbolSet = XObject.define(
 
         resolveAugments : function() {
             // does this sort out multiple extends???
-            for (var p in this._index) {
+            for (var p in this._index) 
+            {
                 var symbol = this.getSymbol(p);
+                if (!symbol.is) {
+                    continue;
+                    print("PROBLEM : " + p);
+                    print(JSON.stringify(symbol, null, 4));
+                }
+                
+                
                 this.buildAugmentsList(symbol); /// build heirachy of inheritance...
                 if (symbol.alias == "_global_" || symbol.is("FILE")) continue;