class documentation
Undocumented
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | get |
get the base variable string without ssa version |
Method | get |
get the built in type class e.g. int, str of this variable representing |
Method | get |
Undocumented |
Method | get |
get the str representation of current node. The difference between this and __repr__ is at nodes.Attribute, this method will return the attr with the version, not the whole str |
Method | is |
check whether the name represents built in type. Return True when self.id / self.attr represents python built-in type. E.g. int, str etc... |
Method | postinit |
Undocumented |
Instance Variable | annotation |
Undocumented |
Instance Variable | arg |
Undocumented |
Class Variable | _fields |
Undocumented |
Class Variable | _other |
Undocumented |
Inherited from Variable
:
Static Method | build |
build Variable class based on the tuple. E.g. vars=(a, b, c) will return Attribute: (a.b.c) |
Method | is |
checking the 'ctx' if it's available |
Instance Variable | links |
Undocumented |
Instance Variable | version |
Undocumented |
Inherited from BaseNode
(via Variable
):
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 |
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 |
Method | statement |
Undocumented |
Instance Variable | col |
Undocumented |
Instance Variable | explicit |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | refer |
Undocumented |
Inherited from InvertCondMixin
(via Variable
, BaseNode
):
Method | invert |
Invert the condition of this node. wrap the node in `not()` |
Method | wrap |
Undocumented |
get the str representation of current node. The difference between this and __repr__ is at nodes.Attribute, this method will return the attr with the version, not the whole str