def call_method(self, id, name, arguments=None): op = Operation("method-call") op.id = id op.name = name op.arguments = arguments self.operations.append(op)
def call_constructor(self, id, namespace, name, arguments=None): op = Operation("constructor-call") op.id = id op.namespace = namespace op.name = name op.arguments = arguments self.operations.append(op)