1.1 --- a/translator.py Thu Jul 05 19:34:04 2018 +0200
1.2 +++ b/translator.py Thu Jul 05 23:40:53 2018 +0200
1.3 @@ -601,8 +601,7 @@
1.4 # Get full final identity details.
1.5
1.6 if final_identity and not refs:
1.7 - ref = self.importer.identify(final_identity)
1.8 - refs = [ref]
1.9 + refs = set([self.importer.identify(final_identity)])
1.10
1.11 del self.attrs[0]
1.12 return AttrResult(output, refs, location, context_identity, context_identity_verified, accessor_test)
1.13 @@ -661,14 +660,9 @@
1.14 access_location = self.deducer.const_accesses.get(location)
1.15
1.16 if remaining and not access_location:
1.17 - return []
1.18 -
1.19 - refs = []
1.20 - l = self.deducer.referenced_attrs.get(access_location or location)
1.21 - if l:
1.22 - for attrtype, objpath, attr in l:
1.23 - refs.append(attr)
1.24 - return refs
1.25 + return set()
1.26 +
1.27 + return self.deducer.get_references_for_access(access_location or location)
1.28
1.29 def get_referenced_attribute_invocations(self, location):
1.30