277 self.__dict["@@Globals@@"]._addglobal( |
277 self.__dict["@@Globals@@"]._addglobal( |
278 Attribute(self.__module, "const " + var.name, |
278 Attribute(self.__module, "const " + var.name, |
279 self.__file, var.line)) |
279 self.__file, var.line)) |
280 |
280 |
281 |
281 |
|
282 # TODO: extract scan function (see pyclbr) |
282 def readmodule_ex(module, path=None): |
283 def readmodule_ex(module, path=None): |
283 """ |
284 """ |
284 Read a JavaScript file and return a dictionary of functions and variables. |
285 Read a JavaScript file and return a dictionary of functions and variables. |
285 |
286 |
286 @param module name of the JavaScript file (string) |
287 @param module name of the JavaScript file (string) |