diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-08 10:33:58 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-09 15:45:40 +0100 |
commit | 4f01f62ac216fa9034d343828aa6f4be626d9b36 (patch) | |
tree | 9a0dbba0554183199aa3f1389e7e166851073bb8 /src/dotty/tools/dotc/core/Constants.scala | |
parent | 2d7a05fa46016ea54e10a80735e04b33fd0938d1 (diff) | |
download | dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.tar.gz dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.tar.bz2 dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.zip |
Shorten ..Class.typeRef to ..Type
Since we now have two forms of (almost) everything in Definitions,
might as well profit from it.
Diffstat (limited to 'src/dotty/tools/dotc/core/Constants.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Constants.scala | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/dotty/tools/dotc/core/Constants.scala b/src/dotty/tools/dotc/core/Constants.scala index 61a23bb9e..e13e07f58 100644 --- a/src/dotty/tools/dotc/core/Constants.scala +++ b/src/dotty/tools/dotc/core/Constants.scala @@ -54,17 +54,17 @@ object Constants { def isAnyVal = UnitTag <= tag && tag <= DoubleTag def tpe(implicit ctx: Context): Type = tag match { - case UnitTag => defn.UnitClass.typeRef - case BooleanTag => defn.BooleanClass.typeRef - case ByteTag => defn.ByteClass.typeRef - case ShortTag => defn.ShortClass.typeRef - case CharTag => defn.CharClass.typeRef - case IntTag => defn.IntClass.typeRef - case LongTag => defn.LongClass.typeRef - case FloatTag => defn.FloatClass.typeRef - case DoubleTag => defn.DoubleClass.typeRef - case StringTag => defn.StringClass.typeRef - case NullTag => defn.NullClass.typeRef + case UnitTag => defn.UnitType + case BooleanTag => defn.BooleanType + case ByteTag => defn.ByteType + case ShortTag => defn.ShortType + case CharTag => defn.CharType + case IntTag => defn.IntType + case LongTag => defn.LongType + case FloatTag => defn.FloatType + case DoubleTag => defn.DoubleType + case StringTag => defn.StringType + case NullTag => defn.NullType case ClazzTag => defn.ClassType(typeValue) case EnumTag => defn.EnumType(symbolValue) } |