JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 05:49:28 +0000 (13:49 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 05:49:28 +0000 (13:49 +0800)
JSDOC/ScopeParser.js

index 19dab1c..9a83e08 100644 (file)
@@ -321,7 +321,7 @@ ScopeParser.prototype = {
                     break;
 
                 case "PUNC.LEFT_CURLY": // {
-                    print('SCOPE-CURLY:' + token.toString());
+                    print('SCOPE-CURLY:' + JSON.stringify(token,null,4));
                     //println("<i>"+token.data+"</i>");
                     isObjectLitAr.push(false);
                     this.braceNesting++;
@@ -379,9 +379,9 @@ ScopeParser.prototype = {
                 
                 case "STRN.DOUBLE_QUOTE": // used for object lit detection..
                 case "STRN.SINGLE_QUOTE":
-                    print('SCOPE-STRING:' + JSON.stringify(token,null,4));
+                    print('SCOPE-STRING:' + token.toString());
                     //println("<i>"+token.data+"</i>");
-                    
+
                     if (this.ts.lookTok(-1).data == '{' && this.ts.lookTok(1).data == ':') {
                         // then we are in an object lit.. -> we need to flag the brace as such...
                         isObjectLitAr.pop();