1.1 --- a/translator.py Mon Mar 20 17:58:38 2017 +0100
1.2 +++ b/translator.py Mon Mar 20 18:28:00 2017 +0100
1.3 @@ -630,6 +630,17 @@
1.4 """
1.5
1.6 access_location = self.deducer.const_accesses.get(location)
1.7 +
1.8 + # Determine whether any deduced references refer to the accessed
1.9 + # attribute.
1.10 +
1.11 + path, accessor_name, attrnames, access_number = location
1.12 + attrnames = attrnames and attrnames.split(".")
1.13 + remaining = attrnames and len(attrnames) > 1
1.14 +
1.15 + if remaining and not access_location:
1.16 + return []
1.17 +
1.18 refs = []
1.19 l = self.deducer.referenced_attrs.get(access_location or location)
1.20 if l: