Utilities/ClassBrowsers/jsclbr.py

branch
5_4_x
changeset 3433
21197826dce1
parent 3411
d8290ca5b8ea
child 3441
1b07f996e9ee
diff -r 8b6a501db77d -r 21197826dce1 Utilities/ClassBrowsers/jsclbr.py
--- 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