JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 07:05:15 +0000 (15:05 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 07:05:15 +0000 (15:05 +0800)
JSDOC/ScopeParser.js

index 4a78d05..f32b3a7 100644 (file)
@@ -234,7 +234,7 @@ ScopeParser.prototype = {
                                 scope.declareIdentifier(token.data, token);
                             } else {
                                 token.identifier = identifier;
-                                this.warn("The variable " + symbol + " has already been declared in the same scope...");
+                                this.warn("The variable " + symbol  + ' (line:' + token.line + ')  has already been declared in the same scope...");
                             }
                         }
 
@@ -384,7 +384,7 @@ ScopeParser.prototype = {
                                 // We don't need to declare longer symbols since they won't cause
                                 // any conflict with other munged symbols.
                                 this.globalScope.declareIdentifier(symbol, token);
-                                this.warn("Found an undeclared symbol: " + symbol, true);
+                                this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true);
                             }
                             
                             //println("GOT IDENT IGNORE(3): <B>" + symbol + "</B><BR/>");
@@ -583,7 +583,7 @@ ScopeParser.prototype = {
                                 // We don't need to declare longer symbols since they won't cause
                                 // any conflict with other munged symbols.
                                 this.globalScope.declareIdentifier(symbol, token);
-                                this.warn("Found an undeclared symbol: " + symbol, true);
+                                this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true);
                             } else {
                                 //println("undeclared")
                             }