1.1 --- a/inspector.py Wed Oct 05 17:25:39 2016 +0200
1.2 +++ b/inspector.py Thu Oct 06 14:28:05 2016 +0200
1.3 @@ -43,6 +43,7 @@
1.4
1.5 self.in_class = False
1.6 self.in_conditional = False
1.7 + self.in_invocation = False
1.8 self.global_attr_accesses = {}
1.9
1.10 # Usage tracking.
1.11 @@ -708,7 +709,10 @@
1.12 try:
1.13 # Process the expression, obtaining any identified reference.
1.14
1.15 + in_invocation = self.in_invocation
1.16 + self.in_invocation = True
1.17 name_ref = self.process_structure_node(n.node)
1.18 + self.in_invocation = in_invocation
1.19
1.20 # Process the arguments.
1.21
1.22 @@ -1083,7 +1087,7 @@
1.23 init_item(self.attr_access_modifiers[path], access, list)
1.24
1.25 access_number = len(self.attr_access_modifiers[path][access])
1.26 - self.attr_access_modifiers[path][access].append(assignment)
1.27 + self.attr_access_modifiers[path][access].append(assignment and "A" or self.in_invocation and "I" or "_")
1.28 return access_number
1.29
1.30 def record_global_access_details(self, name, attrnames):