Fixed an issue in the JavaScript class browser causing it to not recognize the jasy exceptions.

Tue, 25 Mar 2014 19:28:27 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 25 Mar 2014 19:28:27 +0100
changeset 3431
9f6991decc43
parent 3429
4c81e9536ebc
child 3432
7cfe7471175d

Fixed an issue in the JavaScript class browser causing it to not recognize the jasy exceptions.

Utilities/ClassBrowsers/jsclbr.py file | annotate | diff | comparison | revisions
--- a/Utilities/ClassBrowsers/jsclbr.py	Tue Mar 25 19:25:11 2014 +0100
+++ b/Utilities/ClassBrowsers/jsclbr.py	Tue Mar 25 19:28:27 2014 +0100
@@ -9,8 +9,8 @@
 It uses the JavaScript parser contained in the jasy web framework.
 """
 
-import ThirdParty.Jasy.jasy.js.parse.Parser as jsParser
-import ThirdParty.Jasy.jasy.js.tokenize.Tokenizer as jsTokenizer
+import jasy.js.parse.Parser as jsParser
+import jasy.js.tokenize.Tokenizer as jsTokenizer
 
 import Utilities
 import Utilities.ClassBrowsers as ClassBrowsers
@@ -103,7 +103,7 @@
         @return dictionary containing the parsed information
         """
         try:
-            self.__root = jsParser.parse(self.__source)
+            self.__root = jsParser.parse(self.__source, self.__file)
             self.__visit(self.__root)
         except jsParser.SyntaxError:
             # ignore syntax errors of the parser
@@ -111,9 +111,6 @@
         except jsTokenizer.ParseError:
             # ignore syntax errors of the tokenizer
             pass
-        except Exception:
-            # ignore syntax errors of the tokenizer and parser
-            pass
         
         return self.__dict
     

eric ide

mercurial