JSDOC/Scope.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 09:09:41 +0000 (17:09 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 09:09:41 +0000 (17:09 +0800)
JSDOC/Scope.js

index 5fe7403..f66a407 100644 (file)
@@ -25,8 +25,8 @@ function Scope(braceN, parent, startTokN, lastIdent, token)
     this.ident = lastIdent;
     this.gid = Scope.gid++;
     
     this.ident = lastIdent;
     this.gid = Scope.gid++;
     
-    print("ADD SCOPE(" + this.gid + ") TO "+ (parent ? this.parent.gid : 'TOP') + ' : ' + 
-        (token ? token.toString() : ''));
+    //print("ADD SCOPE(" + this.gid + ") TO "+ (parent ? this.parent.gid : 'TOP') + ' : ' + 
+    //    (token ? token.toString() : ''));
     
     if (parent) {
         this.parent.subScopes.push(this);
     
     if (parent) {
         this.parent.subScopes.push(this);
@@ -55,7 +55,7 @@ Scope.prototype = {
     protectedVars : {}, // only used by to parent..
     declareIdentifier : function(symbol, token) {
         
     protectedVars : {}, // only used by to parent..
     declareIdentifier : function(symbol, token) {
         
-        print("SCOPE : " + this.gid +  " : " + token.toString()+"");
+        //print("SCOPE : " + this.gid +  " : " + token.toString()+"");
         
         if (typeof(this.identifiers[symbol])== 'undefined') {
             
         
         if (typeof(this.identifiers[symbol])== 'undefined') {
             
@@ -79,10 +79,10 @@ Scope.prototype = {
                 return false;
             }
             
                 return false;
             }
             
-            print("SCOPE : " + this.gid +" = SYMBOL NOT FOUND?" + token.toString());
+            //print("SCOPE : " + this.gid +" = SYMBOL NOT FOUND?" + token.toString());
             return false;
         }
             return false;
         }
-         print("SCOPE : " + this.gid +" = FOUND:" + token.toString());
+         //print("SCOPE : " + this.gid +" = FOUND:" + token.toString());
         return this.identifiers[symbol];
     },
     
         return this.identifiers[symbol];
     },