diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-08 16:19:32 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-08 16:19:32 +0100 |
commit | 995946ac9a406b018a8d62291e1f69466b962086 (patch) | |
tree | cef7a8d23d19cd935f921b7b8293c970ad08b6d9 /src | |
parent | 549bc867081204e872573f0e69db5adc57ecd735 (diff) | |
download | dotty-995946ac9a406b018a8d62291e1f69466b962086.tar.gz dotty-995946ac9a406b018a8d62291e1f69466b962086.tar.bz2 dotty-995946ac9a406b018a8d62291e1f69466b962086.zip |
Made SymDenotations printable.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 2b20e4c16..6758ce4a1 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -549,6 +549,16 @@ object SymDenotations { else if (this is Contravariant) -1 else 0 + override def toString = { + val kindString = + if (isModuleClass) "module class" + else if (isClass) "class" + else if (isType) "type" + else if (isModule) "module" + else "val" + s"$kindString $name" + } + // ----- copies ------------------------------------------------------ override protected def newLikeThis(s: Symbol, i: Type): SingleDenotation = new UniqueRefDenotation(s, i, validFor) |