@@ -1055,7 +1055,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
1055
1055
printType(lo)
1056
1056
this += " <: "
1057
1057
printType(hi)
1058
- case IsType ( tpe) => printType(tpe)
1058
+ case tpe : Type => printType(tpe)
1059
1059
}
1060
1060
1061
1061
/** Print type
@@ -1089,7 +1089,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
1089
1089
this += " #"
1090
1090
case ThisType (TermRef (cdef, _)) if elideThis.nonEmpty && cdef == elideThis.get =>
1091
1091
case ThisType (TypeRef (cdef, _)) if elideThis.nonEmpty && cdef == elideThis.get =>
1092
- case IsType ( prefix) =>
1092
+ case prefix : Type =>
1093
1093
printType(prefix)
1094
1094
this += " ."
1095
1095
}
@@ -1266,7 +1266,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
1266
1266
case ByNameType (t) =>
1267
1267
this += " : "
1268
1268
printType(t)
1269
- case IsType (tp) =>
1269
+ case tp : Type =>
1270
1270
this += " : "
1271
1271
printType(tp)
1272
1272
}
@@ -1282,7 +1282,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
1282
1282
case ByNameType (_) | MethodType (_, _, _) | TypeLambda (_, _, _) =>
1283
1283
this += highlightKeyword(" def " ) += highlightTypeDef(name)
1284
1284
printMethodicType(info)
1285
- case IsType ( info) =>
1285
+ case info : Type =>
1286
1286
this += highlightKeyword(" val " ) += highlightValDef(name)
1287
1287
printMethodicType(info)
1288
1288
}
@@ -1298,7 +1298,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
1298
1298
def printMethodicTypeParams (paramNames : List [String ], params : List [TypeOrBounds ])(given elideThis : Option [Symbol ]): Unit = {
1299
1299
def printInfo (info : TypeOrBounds ) = info match {
1300
1300
case info : TypeBounds => printBounds(info)
1301
- case IsType ( info) =>
1301
+ case info : Type =>
1302
1302
this += " : "
1303
1303
printType(info)
1304
1304
}
@@ -1444,8 +1444,8 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
1444
1444
1445
1445
object Sequence {
1446
1446
def unapply (tpe : Type )(given ctx : Context ): Option [Type ] = tpe match {
1447
- case AppliedType (TypeRef (prefix : TermRef , " Seq" ), IsType (tp) :: Nil ) if prefix.termSymbol.fullName == " scala.collection" => Some (tp)
1448
- case AppliedType (TypeRef (prefix : TypeRef , " Seq" ), IsType (tp) :: Nil ) if prefix.typeSymbol.fullName == " scala.collection" => Some (tp)
1447
+ case AppliedType (TypeRef (prefix : TermRef , " Seq" ), (tp : Type ) :: Nil ) if prefix.termSymbol.fullName == " scala.collection" => Some (tp)
1448
+ case AppliedType (TypeRef (prefix : TypeRef , " Seq" ), (tp : Type ) :: Nil ) if prefix.typeSymbol.fullName == " scala.collection" => Some (tp)
1449
1449
case _ => None
1450
1450
}
1451
1451
}
@@ -1460,7 +1460,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
1460
1460
1461
1461
object Repeated {
1462
1462
def unapply (tpe : Type )(given ctx : Context ): Option [Type ] = tpe match {
1463
- case AppliedType (TypeRef (ScalaPackage (), " <repeated>" ), IsType (tp) :: Nil ) => Some (tp)
1463
+ case AppliedType (TypeRef (ScalaPackage (), " <repeated>" ), (tp : Type ) :: Nil ) => Some (tp)
1464
1464
case _ => None
1465
1465
}
1466
1466
}
0 commit comments