sync fixes
[app.jsdoc] / JSDOC / BuildDocs.js
index 957d6f5..a4f6bcf 100644 (file)
@@ -1,23 +1,3 @@
-//<script type="text/javascript">
-/**
- *
- * This is the main container for the JSDOC application.
- *
- *usage::
-    
-    BuildDocs = imports.JSDOC.BuildDocs.BuildDocs
-    
-    new BuildDocs(opts)
-    
-    ..
-    
-    or command line:
-    
-    new ArgsParser(argv, imports.BuildDocs.BuildDocs )
- *
- * 
- */
-       
         
 Gio = imports.gi.Gio;
 
@@ -32,9 +12,34 @@ Link        = imports.JsTemplate.Link.Link; // ?? fixme!??
       
    
 /**
- * 
+ * This is the main container for the JSDOC application.
+ *
+ * <PRE>
+usage::
+    
+    BuildDocs = imports.JSDOC.BuildDocs.BuildDocs
+    
+    new BuildDocs(opts)
+    
+    ..
+    
+    or command line:
+    
+    new ArgsParser(argv, imports.BuildDocs.BuildDocs )
+ * </PRE>
+ *
+ *
+ * What it does..
+ *  - tokenizes, collapse, then runs each file through ScopeNamer.
+ *  - this is cached (so reparsing is not always needed)
+ *  This in turn builds 'symbolSet' - which
+ *  - after all symbols are read - symbolSet.relate(); is called.
+ *
+ * @scope JSDOC
  * @class  BuildDocs
- * @namespace JSDOC
  *
  * Main class used to build documentation
  */
@@ -53,7 +58,7 @@ BuildDocs = XObject.define(
 
         });
         */
-         
+        imports.ScopeNamer.ScopeNamer.builder = this;
         
         this.build();
     
@@ -133,10 +138,11 @@ BuildDocs = XObject.define(
          */
         ignoreNamespace : false,
         
-        
-        
-        
-        
+        /**
+         * @cfg {Boolean} treatUnderscoredAsPrivate automatically flag underscore prefixed properties as private.
+         */
+        treatUnderscoredAsPrivate : true,
+       
         /**
          * Full list of source files.
          * @private
@@ -332,9 +338,9 @@ BuildDocs = XObject.define(
             
             imports.ScopeNamer.ScopeNamer.symbols.relate();
             
-            //print(JSON.stringify(
-            //    XObject.keys(imports.ScopeNamer.ScopeNamer.symbols._index),
-            //null, 4));
+             print(JSON.stringify(
+                XObject.keys(imports.ScopeNamer.ScopeNamer.symbols._index),
+            null, 4));
             
              
              //print(JSON.stringify(imports.ScopeNamer.ScopeNamer.symbols._index, null,4));
@@ -448,12 +454,12 @@ BuildDocs = XObject.define(
                 
                 
                 //symbol.ignoreNamespace = this.ignoreNamespace;
-                
-                var ns = File.dirname(symbol.srcFile).replace(/\//g,'.');
-                if (symbol.alias.substring(0, ns.length) == ns) {
-                    ns = '';
-                }
-                ns += ns.length ? '.' : ''; 
+                var ns = '';
+                //var ns = File.dirname(symbol.srcFile).replace(/\//g,'.');
+                //if (symbol.alias.substring(0, ns.length) == ns) {
+                //    ns = '';
+               // }
+                //ns += ns.length ? '.' : ''; 
                 
                 
                 this.LOG.inform("classTemplate Process : " +