class documentation
Build a Module node of the given input source file with publicly APIs to manipulate for parsing and code instrumentation file.
| Method | __init__ |
No summary |
| Method | __str__ |
returns an string representation of the object |
| Method | gen |
Build AST tree for th source |
| Method | gen |
Undocumented |
| Method | gen |
Undocumented |
| Method | make |
Returns a generator of units at statement level |
| Method | parse |
Returns a list of function calls ranking by their line numbers |
| Method | parse |
Return a list of dictionaries, each of its item is a dictionary of function/class definition information. |
| Method | parse |
Return a dictionary data structure to map the imported name, from which module and its aliases. |
| Method | parse |
Returns a list of variable records ranking by their line numbers |
| Method | retrieve |
Undocumented |
| Method | rewrite |
rewrite code |
| Instance Variable | ast |
Undocumented |
| Instance Variable | call |
Undocumented |
| Instance Variable | children |
Undocumented |
| Instance Variable | class |
Undocumented |
| Instance Variable | full |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | node |
Undocumented |
| Instance Variable | node |
Undocumented |
| Instance Variable | parent |
Undocumented |
| Instance Variable | source |
Undocumented |
| Method | _parse |
Parse the function and class definitions in this module |
| Method | _process |
Undocumented |
| Method | _read |
Undocumented |
| Method | _retrieve |
retrieve an AST node by the scope directive. |
Returns a list of function calls ranking by their line numbers
| Parameters | |
| scope | a dotted string to provide name space. For instance, A.fun |
| means to retrieve the function named fun in the class | |
Return a list of dictionaries, each of its item is a dictionary of function/class definition information.
Returns a list of variable records ranking by their line numbers
| Parameters | |
| scope | a dotted string to provide name space. For instance, A.fun |
| means to retreive the function named fun in the class | |
Parse the function and class definitions in this module
| Parameters | |
| ast | a list of statements to be visited. |
| def | a list of dictionary, each of whose entry is a |
| scope | the scope that is currently being visited. When it is "mod", |
| function/class definition | |
| it is visiting under the entire module | |