class documentation

Undocumented

Method __init__ Undocumented
Method generate_ssa_stmt Undocumented
Method get_statements Undocumented
Method postinit Undocumented
Instance Variable body Undocumented
Instance Variable iter Undocumented
Instance Variable orelse Undocumented
Instance Variable target Undocumented
Class Variable _fields Undocumented
Class Variable _other_fields Undocumented

Inherited from Statement (via MultiLineBlock):

Method get_all_replaced_links Get all replaced links' statement, traversing the links
Method get_call_node To be implemented in Assign and Expr
Method get_lhs_value 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_rhs_value 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_targets To be implemented in Assign and AugAssign. Return the targets variable
Method get_values To be implemented in Assign and AugAssign
Method statement Undocumented
Instance Variable is_phi Undocumented
Instance Variable replaced_links Undocumented
Static Method _get_real_slice_from_var 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_value_from_opposite_assignment 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 MultiLineBlock, Statement):

Static Method get_inferred Undocumented
Method __contains__ Undocumented
Method accept Undocumented
Method dunder_lookup try to resolve the dunder method
Method generic_visit Undocumented
Method get_bound_conditions Undocumented
Method get_children Undocumented
Method get_from_outer 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_parent_of_type Undocumented
Method get_stmt_target Undocumented
Method get_target_instance 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_children check if the given node is part of 'self' or children
Method iter_fields Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*.
Method prepare_inferred_value Undocumented
Method scope return the first containing scope
Instance Variable col_offset Undocumented
Instance Variable explicit_inference Undocumented
Instance Variable lineno Undocumented
Instance Variable parent Undocumented
Instance Variable refer_to_block Undocumented
def __init__(self, lineno=None, col_offset=None, parent=None): (source)
def generate_ssa_stmt(self): (source)

Undocumented

def get_statements(self): (source)
def postinit(self, target, iter, body, orelse): (source)

Undocumented

body = (source)

Undocumented

iter = (source)

Undocumented

orelse = (source)

Undocumented

target = (source)

Undocumented

_fields: tuple[str, ...] = (source)

Undocumented

_other_fields: tuple[str, ...] = (source)