gjs compatibility
[gnome.introspection-doc-generator] / JSDOC / CompressWhite.js
index e3eeb32..d5dca8a 100644 (file)
@@ -8,7 +8,7 @@
    @arg packer {Packer} 
  */
  
-CompressWhite =  function (ts, packer, keepWhite)
+const CompressWhite =  function (ts, packer, keepWhite)
 {
     keepWhite = keepWhite || false;
     ts.rewind();
@@ -277,7 +277,7 @@ CompressWhite =  function (ts, packer, keepWhite)
     while (true) {
         
         tok = keepWhite ? ts.next() : ts.nextTok();
-        print(JSON.stringify(tok,null,4));
+        
         if (!tok) {
             break;
         }
@@ -285,9 +285,12 @@ CompressWhite =  function (ts, packer, keepWhite)
             tok.outData = '\n';
         }
         
+        ///print(tok.type + ':' + tok.data);
+        
         if (tok.type == "NAME"  && tok.identifier 
             && tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
             //f.write(tok.identifier.mungedValue);
+            //print("MUNGED: " + tok.identifier.mungedValue);
             out += tok.identifier.mungedValue;
             continue;
         }