JSDOC/SymbolSet.js
[gnome.introspection-doc-generator] / JSDOC / SymbolSet.js
index d308759..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 + ".");
             }
@@ -59,7 +60,7 @@ SymbolSet = XObject.define(
             for (var p in this._index) {
                 found.push(this._index[p]);
             }
-            return found**;
+            return found;
         },
         /**
          * for serializing
@@ -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;