1.1 --- a/deducer.py Tue Oct 11 16:29:50 2016 +0200
1.2 +++ b/deducer.py Wed Oct 12 00:05:08 2016 +0200
1.3 @@ -1888,14 +1888,14 @@
1.4 # Identified attribute that must be accessed via its parent.
1.5
1.6 if attr and attr.get_name() and location in self.reference_assignments:
1.7 - method = "direct"; origin = attr.get_name()
1.8 + method = "assign"; origin = attr.get_name()
1.9
1.10 # Static, identified attribute.
1.11
1.12 elif attr and attr.static():
1.13 method = "static"; origin = attr.final()
1.14
1.15 - # Attribute accessed at a known position via its parent.
1.16 + # First attribute accessed at a known position via the accessor.
1.17
1.18 elif base or dynamic_base:
1.19 method = "relative" + (object_relative and "-object" or "") + \
1.20 @@ -1911,7 +1911,7 @@
1.21
1.22 # Determine the nature of the context.
1.23
1.24 - context = base and "base" or len(traversed or remaining) > 1 and "traversal" or "accessor"
1.25 + context = len(traversed or remaining) == 1 and (base and "base" or "original-accessor") or "final-accessor"
1.26
1.27 return name, test, test_type, base, traversed, remaining, context, method, origin
1.28