JSDOC/DocTag.js
[gnome.introspection-doc-generator] / JSDOC / Parser.js
index 3df204b..e814263 100644 (file)
@@ -71,7 +71,7 @@ Parser = {
         
         this.filesSymbols[Symbol.srcFile] = new SymbolSet();
         
-        Options.LOG.inform("Parser - run walker");
+        //Options.LOG.inform("Parser - run walker");
         this.walker = new  Walker2(ts);
         this.walker.buildSymbolTree();
         
@@ -79,15 +79,20 @@ Parser = {
         
         //this.walker.walk(ts); // adds to our symbols
        // throw "done sym tree";
-        Options.LOG.inform("Parser - checking symbols");
+        //Options.LOG.inform("Parser - checking symbols");
         // filter symbols by option
         for (p in this.symbols._index) {
             var symbol = this.symbols.getSymbol(p);
             
-            //print(JSON.stringify(symbol, null,4));
+           // print(JSON.stringify(symbol, null,4));
             
             if (!symbol) continue;
             
+            if (symbol.isPrivate) {
+                this.symbols.deleteSymbol(symbol.alias);
+                continue;
+            }
+            
             if (symbol.is("FILE") || symbol.is("GLOBAL")) {
                 continue;
             }
@@ -188,9 +193,16 @@ Parser = {
                        }
                        print("-------------------\n");
                }
-       }
-    
-    
-    
+       },
+    /**
+     * return symbols so they can be serialized.
+     */
+    symbolsToObject : function(srcFile)
+    {
+        //this.filesSymbols[srcFile] is a symbolset..
+        return this.filesSymbols[srcFile];
+        
+            //    Parser.filesSymbols[srcFile]._index
+    }
 
 }
\ No newline at end of file