class documentation

class CallSiteValues(object):

View In Hierarchy

Helper class to access arguments and return value from a `call` transition.

Method __init__ No summary
Method arg Get the value of the argument, by name.
Method arg_n Get the value of the argument, by index.
Method args Get argument values as a dictionary indexed by argument name
Method ret No summary
Instance Variable _after_ret_tr Undocumented
Instance Variable _args Undocumented
Instance Variable _call_tr Undocumented
Instance Variable _proto Undocumented
def __init__(self, call_tr, proto):
Parameters
call_tr:Transitioncall transition Transition
proto:Prototypeprototype info Prototype
def arg(self, name):

Get the value of the argument, by name.

Parameters
name:strname of the argument.
Returns
_Anyvalue of the argument as given by reven2.trace.Context.read.
Raises
KeyErrorif no argument found with given name.
def arg_n(self, index):

Get the value of the argument, by index.

Parameters
index:intindex of the argument, starts at 0 for first argument.
Returns
_Anyvalue of the argument as given by reven2.trace.Context.read.
Raises
IndexErrorif no argument at given index.
def args(self):

Get argument values as a dictionary indexed by argument name

Arguments without a name use "arg{argument_index}" as a key.

Returns
_Dict[str, _Any]dictionary of argument name to value
def ret(self):
Returns
_Anythe ret value as given by reven2.trace.Context.read
Raises
RuntimeErrorif the `ret` transition is not found.
_after_ret_tr =

Undocumented

_args =

Undocumented

_call_tr =

Undocumented

_proto =

Undocumented