class documentation
Undocumented
Method | __init__ |
Undocumented |
Method | postinit |
Undocumented |
Instance Variable | targets |
Undocumented |
Class Variable | _fields |
Undocumented |
Class Variable | _other |
Undocumented |
Inherited from Statement
:
Method | get |
Get all replaced links' statement, traversing the links |
Method | get |
To be implemented in Assign and Expr |
Method | get |
get targets variable that is associated with rhs variable var E.g. a.b = c.d = d calling get_lhs_value(d) will return [a.b, c.d] a.b, e.f, f.g = c.d, d.e, g = d, e, f calling get_lhs_value(f) will return [f... |
Method | get |
get variable in rhs that is associate with var in lhs E.g. a, b, c = d ,e, f = g, h, i calling `get_rhs_value(b)` will return h :param var: the variable in the targets :return: Variable in rhs |
Method | get |
Undocumented |
Method | get |
To be implemented in Assign and AugAssign. Return the targets variable |
Method | get |
To be implemented in Assign and AugAssign |
Method | statement |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | replaced |
Undocumented |
Static Method | _get |
construct a real slice() object based on the relationship of var in container :param var: variable refer to construct the slice :param container: the container that contain variable var :return: a slice() object... |
Method | _get |
Get the `value` that is stored in `value_container` in the `target_container` also help to unpack the value. It follows the steps below: 1. get the real slice value from the relationship of `value` in `value_container` 2... |
Inherited from BaseNode
(via Statement
):
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 | scope |
return the first containing scope |
Instance Variable | col |
Undocumented |
Instance Variable | explicit |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | refer |
Undocumented |