class documentation

Class Method from_other_instance Undocumented
Method __init__ Undocumented
Method create_latest_stmt Undocumented
Method get_latest_stmt return the latest statement in locals dict
Method get_latest_stmt_from_stack Get the latest version from stack, and get the corresponding statement
Method get_version get the version number of the var, create the var entry if it's not exists
Method remove_version Undocumented
Method resolve_instance Undocumented
Method scope return the first containing scope
Method update_version increment the version of the var inside the dict and return the version number :param var: :param block_label: :return:
Instance Variable containing_scope Undocumented
Instance Variable global_var Undocumented
Instance Variable instance_dict Undocumented
Instance Variable locals Undocumented
Instance Variable ssa_record Undocumented

Inherited from BaseNode:

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_statements 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 statement Undocumented
Instance Variable col_offset Undocumented
Instance Variable explicit_inference Undocumented
Instance Variable lineno Undocumented
Instance Variable parent Undocumented
Instance Variable refer_to_block Undocumented
Class Variable _fields Undocumented
@classmethod
def from_other_instance(cls, other_ins): (source)

Undocumented

def create_latest_stmt(self, target, value): (source)

Undocumented

Parameters
target:strUndocumented
value:BaseNodeUndocumented
def get_latest_stmt(self, var): (source)

return the latest statement in locals dict

Parameters
var:strUndocumented
def get_latest_stmt_from_stack(self, var): (source)

Get the latest version from stack, and get the corresponding statement

Parameters
var:strUndocumented
def get_version(self, var): (source)

get the version number of the var, create the var entry if it's not exists

Parameters
var:strUndocumented
def remove_version(self, var, ver): (source)

Undocumented

def resolve_instance(self): (source)
def scope(self): (source)

return the first containing scope

def update_version(self, var): (source)

increment the version of the var inside the dict and return the version number :param var: :param block_label: :return:

Parameters
var:strUndocumented
containing_scope: list = (source)

Undocumented

global_var: dict = (source)

Undocumented

instance_dict: dict = (source)

Undocumented

locals: dict = (source)

Undocumented

ssa_record = (source)

Undocumented