1.1 --- a/referencing.py Sun Jan 15 17:37:00 2023 +0100
1.2 +++ b/referencing.py Fri Sep 01 19:35:20 2023 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Reference abstractions.
1.6
1.7 -Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2016, 2017, 2023 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 @@ -222,6 +222,12 @@
1.13 name = self.get_name()
1.14 return name and name.rsplit(".")[-1].startswith("$c")
1.15
1.16 + def is_well_defined_instance(self):
1.17 +
1.18 + "Return whether this reference involves a well-defined instance."
1.19 +
1.20 + return self.get_kind() == "<instance>"
1.21 +
1.22 def is_predefined_value(self):
1.23
1.24 "Return whether this reference identifies a predefined value."