1.1 --- a/resolving.py Sun Feb 12 23:23:28 2017 +0100
1.2 +++ b/resolving.py Sun Feb 19 17:31:31 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Name resolution.
1.6
1.7 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -289,7 +289,13 @@
1.13
1.14 if not ref:
1.15 if not invocation:
1.16 - aliased_names[i] = name_ref.original_name, name_ref.attrnames, name_ref.number
1.17 +
1.18 + # Record the path used for tracking purposes
1.19 + # alongside original name, attribute and access
1.20 + # number details.
1.21 +
1.22 + aliased_names[i] = path, name_ref.original_name, name_ref.attrnames, name_ref.number
1.23 +
1.24 continue
1.25
1.26 # Attempt to resolve a plain name reference.
1.27 @@ -303,7 +309,13 @@
1.28
1.29 if not origin:
1.30 if not invocation:
1.31 - aliased_names[i] = name_ref.name, None, name_ref.number
1.32 +
1.33 + # Record the path used for tracking purposes
1.34 + # alongside original name, attribute and access
1.35 + # number details.
1.36 +
1.37 + aliased_names[i] = path, name_ref.name, None, name_ref.number
1.38 +
1.39 continue
1.40
1.41 ref = self.get_resolved_object(origin)