1.1 --- a/transresults.py Wed Aug 30 00:55:30 2023 +0200
1.2 +++ b/transresults.py Wed Aug 30 01:49:28 2023 +0200
1.3 @@ -289,11 +289,15 @@
1.4
1.5 "A translation result for an invocation."
1.6
1.7 + def __init__(self, result_target, instructions):
1.8 + InstructionSequence.__init__(self, instructions)
1.9 + self.result_target = result_target
1.10 +
1.11 def __str__(self):
1.12 return encode_instructions(self.instructions)
1.13
1.14 def __repr__(self):
1.15 - return "InvocationResult(%r)" % self.instructions
1.16 + return "InvocationResult(%r, %r)" % (self.result_target, self.instructions)
1.17
1.18 class InstantiationResult(InvocationResult, TrInstanceRef):
1.19
1.20 @@ -301,7 +305,7 @@
1.21
1.22 def __init__(self, ref, instructions):
1.23 InstanceRef.__init__(self, ref)
1.24 - InvocationResult.__init__(self, instructions)
1.25 + InvocationResult.__init__(self, "__NULL", instructions)
1.26
1.27 def __repr__(self):
1.28 return "InstantiationResult(%r, %r)" % (self.ref, self.instructions)