1.1 --- a/transresults.py Sat Jun 23 18:01:56 2018 +0200
1.2 +++ b/transresults.py Sun Jun 24 00:09:33 2018 +0200
1.3 @@ -178,12 +178,14 @@
1.4
1.5 "A translation result for an attribute access."
1.6
1.7 - def __init__(self, instructions, refs, location, context_identity, context_identity_verified):
1.8 + def __init__(self, instructions, refs, location, context_identity,
1.9 + context_identity_verified, accessor_test):
1.10 InstructionSequence.__init__(self, instructions)
1.11 self.refs = refs
1.12 self.location = location
1.13 self.context_identity = context_identity
1.14 self.context_identity_verified = context_identity_verified
1.15 + self.accessor_test = accessor_test
1.16
1.17 def references(self):
1.18 return self.refs
1.19 @@ -197,6 +199,9 @@
1.20 def context_verified(self):
1.21 return self.context_identity_verified and self.context() or None
1.22
1.23 + def tests_accessor(self):
1.24 + return self.accessor_test
1.25 +
1.26 def get_origin(self):
1.27 return self.refs and len(self.refs) == 1 and first(self.refs).get_origin()
1.28
1.29 @@ -215,7 +220,8 @@
1.30 return encode_instructions(self.instructions)
1.31
1.32 def __repr__(self):
1.33 - return "AttrResult(%r, %r, %r, %r)" % (self.instructions, self.refs, self.location, self.context_identity)
1.34 + return "AttrResult(%r, %r, %r, %r, %r)" % (self.instructions, self.refs,
1.35 + self.location, self.context_identity, self.accessor_test)
1.36
1.37 class AliasResult(NameRef, Result):
1.38