# HG changeset patch # User Paul Boddie # Date 1489355459 -3600 # Node ID 06bb0d10327642f93f33c8fa5151c523c97d874f # Parent 026f3eeca44318a49106690009c56b2bd268c4db Record assignment and invocation modifiers for plain name accesses. diff -r 026f3eeca443 -r 06bb0d103276 deducer.py --- a/deducer.py Sun Mar 12 21:41:15 2017 +0100 +++ b/deducer.py Sun Mar 12 22:50:59 2017 +0100 @@ -903,9 +903,11 @@ access_location = (path, None, attrname_str, 0) # Plain name accesses do not employ attributes and are - # ignored. + # ignored. Whether they are invoked is of interest, however. if not attrname_str: + if invocation: + self.reference_invocations[access_location] = invocation continue attrnames = get_attrnames(attrname_str) diff -r 026f3eeca443 -r 06bb0d103276 inspector.py --- a/inspector.py Sun Mar 12 21:41:15 2017 +0100 +++ b/inspector.py Sun Mar 12 22:50:59 2017 +0100 @@ -902,7 +902,8 @@ branches = self.trackers[-1].tracking_name(name) if branches: self.record_branches_for_access(branches, name, None) - return self.record_access_details(name, None, None, None) + return self.record_access_details(name, None, self.in_assignment, + self.in_invocation) return None def process_operator_chain(self, nodes, fn):