JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index eeb6c48..ead73bc 100644 (file)
@@ -717,7 +717,7 @@ ScopeParser.prototype = {
                     //print("in NAME 0: " + this.ts.look(0).toString());
                     //print("in NAME 2: " + this.ts.lookTok(2).toString());
                     
-                    //print(this.ts.lookTok(0).data);
+                    print(this.ts.lookTok(0).data);
                     // prefixed with '.'
                     if (this.ts.lookTok(0).data == ".") {
                         //skip '.'
@@ -738,6 +738,8 @@ ScopeParser.prototype = {
                                 // any conflict with other munged symbols.
                                 this.globalScope.declareIdentifier(symbol, token);
                                 this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true);
+                                print("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')');
+                                throw "OOPS";
                             } else {
                                 print("undeclared:" + token.toString())
                             }