class documentation
manages context for analyzing different scope
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | get |
Undocumented |
Method | hash |
Undocumented |
Method | map |
map arbitrary number of args to the target func_node. :param args: positional arguments for mapping to func_node :param func_node: the target function :param offset: offset of args in target_func :param remove_default: flag to determine whether to remove arg in call_context :return: True if type matches, False if otherwise. |
Method | map |
match the arg from call to args from FunctionDef. |
Method | push |
to handle the inference path. :return: True if node is already in context path else False :rtype: bool |
Method | reload |
make sure that the locals in must be the subset of the scope locals. See #mr9ac |
Method | remove |
Undocumented |
Method | remove |
Undocumented |
Method | remove |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Class Variable | id |
Undocumented |
Instance Variable | bound |
Undocumented |
Instance Variable | call |
Undocumented |
Instance Variable | call |
Undocumented |
Instance Variable | conditions |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | decorator |
Undocumented |
Instance Variable | globals |
Undocumented |
Instance Variable | instance |
Undocumented |
Instance Variable | inverted |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | model |
Undocumented |
Instance Variable | no |
Undocumented |
Instance Variable | path |
Undocumented |
Instance Variable | z3 |
Undocumented |
Instance Variable | z3 |
Undocumented |
Instance Variable | _id |
Undocumented |
def __init__(self, call_context=None, bound_instance=None, global_context=None, instance_mode=False, config=None, decorator_ignore=None, node_ignore=None, is_node_ignore_mode=False):
(source)
Undocumented
def map_args_to_func(self, *args, kwargs=None, func_node=None, offset=0, remove_default=True):
(source)
map arbitrary number of args to the target func_node. :param args: positional arguments for mapping to func_node :param func_node: the target function :param offset: offset of args in target_func :param remove_default: flag to determine whether to remove arg in call_context :return: True if type matches, False if otherwise.
to handle the inference path. :return: True if node is already in context path else False :rtype: bool
make sure that the locals in must be the subset of the scope locals. See #mr9ac
Parameters | |
callnodes.Call | Undocumented |
dest | Undocumented |
instance | Undocumented |
class | Undocumented |