Parse a JavaScript file and retrieve variables and functions.
It uses the JavaScript parser contained in the jasy web framework.
| SUPPORTED_TYPES |
| _modules |
| Attribute | Class to represent a class attribute. |
| Function | Class to represent a Python function. |
| VisibilityMixin | Mixin class implementing the notion of visibility. |
| Visitor | Class implementing a visitor going through the parsed tree. |
| readmodule_ex | Read a JavaScript file and return a dictionary of functions and variables. |
| scan | Public method to scan the given source text. |
Class to represent a class attribute.
| None |
| None |
| Attribute | Constructor |
| None |
Constructor
Class to represent a Python function.
| None |
| None |
| Function | Constructor |
| None |
Constructor
Mixin class implementing the notion of visibility.
| None |
| None |
| VisibilityMixin | Constructor |
| None |
Constructor
Class implementing a visitor going through the parsed tree.
| None |
| None |
| Visitor | Constructor |
| __visit | Private method implementing the visit logic delegating to interesting methods. |
| call | |
| parse | Public method to parse the source. |
| visit_const | Public method to treat a constant node. |
| visit_function | Public method to treat a function node. |
| visit_noop | Public method to ignore the given node. |
| visit_property_init | Public method to treat a property_init node. |
| visit_var | Public method to treat a variable node. |
| None |
Constructor
Private method implementing the visit logic delegating to interesting methods.
Public method to parse the source.
Public method to treat a constant node.
Public method to treat a function node.
Public method to ignore the given node.
Public method to treat a property_init node.
Public method to treat a variable node.
Read a JavaScript file and return a dictionary of functions and variables.
Public method to scan the given source text.