JSDOC/CompressWhite.js
[gnome.introspection-doc-generator] / JSDOC / TokenStream.js
index 3a30964..a9c685d 100644 (file)
@@ -192,10 +192,10 @@ TokenStream = XObject.define(
             var depth = 0;
             var got = [];
             var started = false;
-            Seed.print("STOP:" + stop);
+            //Seed.print("STOP:" + stop);
             while ((token = this.look())) {
                 if (token.is(start)) {
-                    Seed.print("balance: START : " + depth + " " + token.data);
+                   // Seed.print("balance: START : " + depth + " " + token.data);
                     depth++;
                     started = true;
                 }
@@ -206,8 +206,8 @@ TokenStream = XObject.define(
                 
                 if (token.is(stop)) {
                     depth--;
-                    Seed.print("balance: STOP: " " + depth + " " + token.data);
-                    if (depth == 0) return got;
+                   // Seed.print("balance: STOP: "  + depth + " " + token.data);
+                    if (depth < 0) return got;
                 }
                 if (!this.next()) break;
             }