sync fixes
[app.jsdoc] / JSDOC / BuildDocs.js
index 90c820c..a4f6bcf 100644 (file)
@@ -1,9 +1,21 @@
-//<script type="text/javascript">
+        
+Gio = imports.gi.Gio;
+
+XObject      = imports.XObject.XObject;
+File        = imports.File.File;
+
+
+
+Template     = imports.JsTemplate.Template.Template;
+Link        = imports.JsTemplate.Link.Link; // ?? fixme!??
+
+      
+   
 /**
- *
  * This is the main container for the JSDOC application.
  *
- *usage::
+ * <PRE>
+usage::
     
     BuildDocs = imports.JSDOC.BuildDocs.BuildDocs
     
     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
- */
-       
-        
-Gio = imports.gi.Gio;
-
-XObject      = imports.XObject.XObject;
-File        = imports.File.File;
-
-
-
-Template     = imports.JsTemplate.Template.Template;
-Link        = imports.JsTemplate.Link.Link; // ?? fixme!??
-
-      
-   
-/**
- * 
  * @class  BuildDocs
  *
  * Main class used to build documentation
@@ -52,7 +58,7 @@ BuildDocs = XObject.define(
 
         });
         */
-         
+        imports.ScopeNamer.ScopeNamer.builder = this;
         
         this.build();
     
@@ -132,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
@@ -331,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));
@@ -447,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 : " +