class documentation
class ClassDef(LocalsDictNode, MultiLineBlock, ScopeSsaMixin): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | generate |
generate multiple statement to simulate renaming of Scope without body. 1. generate Name object for scope name. create stmt: Assign: {self.func} = Proxy(self) :return: tuple of statement |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | is |
Undocumented |
Method | postinit |
Undocumented |
Method | resolve |
no need to resolve since it's class |
Instance Variable | bases |
Undocumented |
Instance Variable | body |
Undocumented |
Instance Variable | decorator |
Undocumented |
Instance Variable | keywords |
Undocumented |
Instance Variable | kwargs |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | starargs |
Undocumented |
Method | _compute |
Undocumented |
Method | _inferred |
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 | 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 |
generate multiple statement to simulate renaming of Scope without body. 1. generate Name object for scope name. create stmt: Assign: {self.func} = Proxy(self) :return: tuple of statement
def postinit(self, name, bases, keywords=None, starargs=None, kwargs=None, body=None, decorator_list=None):
(source)
Undocumented