class documentation
class Module(LocalsDictNode, MultiLineBlock): (source)
Class representing ast.Module
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | get |
Undocumented |
Method | postinit |
Undocumented |
Instance Variable | body |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | path |
Undocumented |
Class Variable | _fields |
Undocumented |
Class Variable | _other |
Undocumented |
Inherited from LocalsDictNode
:
Class Method | from |
Undocumented |
Method | create |
Undocumented |
Method | get |
return the latest statement in locals dict |
Method | get |
Get the latest version from stack, and get the corresponding statement |
Method | get |
get the version number of the var, create the var entry if it's not exists |
Method | remove |
Undocumented |
Method | resolve |
Undocumented |
Method | scope |
return the first containing scope |
Method | update |
increment the version of the var inside the dict and return the version number :param var: :param block_label: :return: |
Instance Variable | containing |
Undocumented |
Instance Variable | global |
Undocumented |
Instance Variable | instance |
Undocumented |
Instance Variable | locals |
Undocumented |
Instance Variable | ssa |
Undocumented |
Inherited from BaseNode
(via LocalsDictNode
):
Static Method | get |
Undocumented |
Method | __contains__ |
Undocumented |
Method | accept |
Undocumented |
Method | dunder |
try to resolve the dunder method |
Method | generic |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
find the definition of `var` from outer scope recursively. Skip param will determine how many parent scope to skip :param var: variable of interest :param skip: how many layer of parent scope to skip :return:... |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
get the assigning target instance rather than scope(). See #mr68u a.b.c = node calling node.get_target_instance() will return `a.b.c.instance()` |
Method | is |
check if the given node is part of 'self' or children |
Method | iter |
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*. |
Method | prepare |
Undocumented |
Method | statement |
Undocumented |
Instance Variable | col |
Undocumented |
Instance Variable | explicit |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | refer |
Undocumented |