aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Referenceds.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Referenceds.scala')
-rw-r--r--src/dotty/tools/dotc/core/Referenceds.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Referenceds.scala b/src/dotty/tools/dotc/core/Referenceds.scala
index f0db3ff6c..7ec862be2 100644
--- a/src/dotty/tools/dotc/core/Referenceds.scala
+++ b/src/dotty/tools/dotc/core/Referenceds.scala
@@ -77,6 +77,12 @@ object Referenceds {
/** Is this a reference to a type symbol? */
def isType: Boolean = false
+ /** Is this a reference to a term symbol? */
+ def isTerm: Boolean = !isType
+
+ /** Is this reference overloaded? */
+ def isOverloaded = isInstanceOf[OverloadedRef]
+
/** The signature of the reference */
def signature: Signature
@@ -328,6 +334,7 @@ object Referenceds {
val info = NoType
validFor = Nowhere
override def exists = false
+ override def isTerm = false
}
// --------------- ReferencedSets -------------------------------------------------