1.1 --- a/transresults.py Tue Mar 14 22:54:03 2017 +0100
1.2 +++ b/transresults.py Tue Mar 14 23:00:05 2017 +0100
1.3 @@ -71,9 +71,6 @@
1.4 def access_location(self):
1.5 return self.location
1.6
1.7 - def access_locations(self):
1.8 - return self.location and [self.location]
1.9 -
1.10 def __str__(self):
1.11
1.12 "Return an output representation of the referenced name."
1.13 @@ -188,9 +185,6 @@
1.14 def access_location(self):
1.15 return self.location
1.16
1.17 - def access_locations(self):
1.18 - return self.location and [self.location]
1.19 -
1.20 def context(self):
1.21 return self.context_identity
1.22
1.23 @@ -218,11 +212,11 @@
1.24
1.25 "An alias for other values."
1.26
1.27 - def __init__(self, name_ref, refs, locations):
1.28 + def __init__(self, name_ref, refs, location):
1.29 NameRef.__init__(self, name_ref.name, is_global=name_ref.is_global_name())
1.30 self.name_ref = name_ref
1.31 self.refs = refs
1.32 - self.locations = locations
1.33 + self.location = location
1.34
1.35 def references(self):
1.36 ref = self.name_ref.reference()
1.37 @@ -233,10 +227,7 @@
1.38 return len(refs) == 1 and first(refs) or None
1.39
1.40 def access_location(self):
1.41 - return len(self.locations) == 1 and first(self.locations) or None
1.42 -
1.43 - def access_locations(self):
1.44 - return self.locations
1.45 + return self.location
1.46
1.47 def get_name(self):
1.48 ref = self.reference()