aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-06-18 19:38:09 +0200
committerMartin Odersky <odersky@gmail.com>2013-06-18 19:38:09 +0200
commitf8a42a0584d855a0548c20c7434ed83a59647ed9 (patch)
tree9bdb1b8367d5a692cbf26003e6b10b6122a8d03b /src/dotty/tools/dotc/core/SymDenotations.scala
parent3c7936515a9aaf383b453fe5844598fd53a2e551 (diff)
downloaddotty-f8a42a0584d855a0548c20c7434ed83a59647ed9.tar.gz
dotty-f8a42a0584d855a0548c20c7434ed83a59647ed9.tar.bz2
dotty-f8a42a0584d855a0548c20c7434ed83a59647ed9.zip
Added typedIdent method.
Also some refactorings that were caused by adding this method.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 64119944c..3026562a3 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -208,6 +208,10 @@ object SymDenotations {
final def markAbsent(): Unit =
_info = NoType
+ /** Is symbol known to not exist? */
+ final def isAbsent: Boolean =
+ _info == NoType
+
/** Is this symbol the root class or its companion object? */
final def isRoot: Boolean = name.toTermName == nme.ROOT