JSDOC/SymbolSet.js
[gnome.introspection-doc-generator] / JSDOC / SymbolSet.js
index a7a5676..07e3174 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,7 +67,7 @@ SymbolSet = XObject.define(
          */
         toJSON : function() {
             return {
-                _object : 'SymbolSet',
+                '*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