Skip to content

Commit ed3f690

Browse files
committed
Change Tpe to Type
1 parent ad63d93 commit ed3f690

File tree

3 files changed

+44
-44
lines changed

3 files changed

+44
-44
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/StandardDefinitions.scala

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ trait StandardDefinitions extends scala.tasty.reflect.StandardDefinitions with F
5959
def ScalaNumericValueClasses: List[ClassDef] =
6060
ByteClass :: ShortClass :: IntClass :: LongClass :: FloatClass :: DoubleClass :: CharClass :: Nil
6161

62-
def UnitTpe: Type = defn.UnitType
63-
def ByteTpe: Type = defn.ByteType
64-
def ShortTpe: Type = defn.ShortType
65-
def CharTpe: Type = defn.CharType
66-
def IntTpe: Type = defn.IntType
67-
def LongTpe: Type = defn.LongType
68-
def FloatTpe: Type = defn.FloatType
69-
def DoubleTpe: Type = defn.DoubleType
70-
def BooleanTpe: Type = defn.BooleanType
71-
def AnyTpe: Type = defn.AnyType
72-
def AnyValTpe: Type = defn.AnyValType
73-
def AnyRefTpe: Type = defn.AnyRefType
74-
def ObjectTpe: Type = defn.ObjectType
75-
def NothingTpe: Type = defn.NothingType
76-
def NullTpe: Type = defn.NullType
62+
def UnitType: Type = defn.UnitType
63+
def ByteType: Type = defn.ByteType
64+
def ShortType: Type = defn.ShortType
65+
def CharType: Type = defn.CharType
66+
def IntType: Type = defn.IntType
67+
def LongType: Type = defn.LongType
68+
def FloatType: Type = defn.FloatType
69+
def DoubleType: Type = defn.DoubleType
70+
def BooleanType: Type = defn.BooleanType
71+
def AnyType: Type = defn.AnyType
72+
def AnyValType: Type = defn.AnyValType
73+
def AnyRefType: Type = defn.AnyRefType
74+
def ObjectType: Type = defn.ObjectType
75+
def NothingType: Type = defn.NothingType
76+
def NullType: Type = defn.NullType
7777
}
7878
}

library/src/scala/tasty/reflect/StandardDefinitions.scala

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -161,48 +161,48 @@ trait StandardDefinitions {
161161
*/
162162
trait StandardTypes {
163163
/** The type of primitive type `Unit`. */
164-
def UnitTpe: Type
164+
def UnitType: Type
165165

166166
/** The type of primitive type `Byte`. */
167-
def ByteTpe: Type
167+
def ByteType: Type
168168

169169
/** The type of primitive type `Short`. */
170-
def ShortTpe: Type
170+
def ShortType: Type
171171

172172
/** The type of primitive type `Char`. */
173-
def CharTpe: Type
173+
def CharType: Type
174174

175175
/** The type of primitive type `Int`. */
176-
def IntTpe: Type
176+
def IntType: Type
177177

178178
/** The type of primitive type `Long`. */
179-
def LongTpe: Type
179+
def LongType: Type
180180

181181
/** The type of primitive type `Float`. */
182-
def FloatTpe: Type
182+
def FloatType: Type
183183

184184
/** The type of primitive type `Double`. */
185-
def DoubleTpe: Type
185+
def DoubleType: Type
186186

187187
/** The type of primitive type `Boolean`. */
188-
def BooleanTpe: Type
188+
def BooleanType: Type
189189

190190
/** The type of core type `Any`. */
191-
def AnyTpe: Type
191+
def AnyType: Type
192192

193193
/** The type of core type `AnyVal`. */
194-
def AnyValTpe: Type
194+
def AnyValType: Type
195195

196196
/** The type of core type `AnyRef`. */
197-
def AnyRefTpe: Type
197+
def AnyRefType: Type
198198

199199
/** The type of core type `Object`. */
200-
def ObjectTpe: Type
200+
def ObjectType: Type
201201

202202
/** The type of core type `Nothing`. */
203-
def NothingTpe: Type
203+
def NothingType: Type
204204

205205
/** The type of core type `Null`. */
206-
def NullTpe: Type
206+
def NullType: Type
207207
}
208208
}

tests/run/tasty-definitions/quoted_1.scala

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,20 @@ object Macros {
7878
printout(definitions.ScalaPrimitiveValueClasses.map(_.name).toString)
7979
printout(definitions.ScalaNumericValueClasses.map(_.name).toString)
8080

81-
printout(definitions.UnitTpe.show)
82-
printout(definitions.ByteTpe.show)
83-
printout(definitions.CharTpe.show)
84-
printout(definitions.IntTpe.show)
85-
printout(definitions.LongTpe.show)
86-
printout(definitions.FloatTpe.show)
87-
printout(definitions.DoubleTpe.show)
88-
printout(definitions.BooleanTpe.show)
89-
printout(definitions.AnyTpe.show)
90-
printout(definitions.AnyValTpe.show)
91-
printout(definitions.AnyRefTpe.show)
92-
printout(definitions.ObjectTpe.show)
93-
printout(definitions.NothingTpe.show)
94-
printout(definitions.NullTpe.show)
81+
printout(definitions.UnitType.show)
82+
printout(definitions.ByteType.show)
83+
printout(definitions.CharType.show)
84+
printout(definitions.IntType.show)
85+
printout(definitions.LongType.show)
86+
printout(definitions.FloatType.show)
87+
printout(definitions.DoubleType.show)
88+
printout(definitions.BooleanType.show)
89+
printout(definitions.AnyType.show)
90+
printout(definitions.AnyValType.show)
91+
printout(definitions.AnyRefType.show)
92+
printout(definitions.ObjectType.show)
93+
printout(definitions.NothingType.show)
94+
printout(definitions.NullType.show)
9595

9696

9797
'(println(~buff.result().mkString("\n").toExpr))

0 commit comments

Comments
 (0)