JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 07:50:36 +0000 (15:50 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 07:50:36 +0000 (15:50 +0800)
JSDOC/ScopeParser.js

index be4db58..07014c7 100644 (file)
@@ -709,12 +709,14 @@ ScopeParser.prototype = {
                     //print("in NAME 2: " + this.ts.lookTok(2).toString());
                     
                     //print(this.ts.lookTok(0).data);
+                    // prefixed with '.'
                     if (this.ts.lookTok(0).data == ".") {
                         //skip '.'
                         break;
                     }
                     
-                     if (this.mode == 'PASS2_SYMBOL_TREE') {
+                    
+                    if (this.mode == 'PASS2_SYMBOL_TREE') {
 
                         identifier = this.getIdentifier(symbol, currentScope);
                         //println("<B>??</B>");
@@ -728,7 +730,7 @@ ScopeParser.prototype = {
                                 this.globalScope.declareIdentifier(symbol, token);
                                 this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true);
                             } else {
-                                //println("undeclared")
+                                println("undeclared:" + symbol)
                             }