File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
library/src/scala/tasty/reflect Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1628,6 +1628,26 @@ trait Printers
16281628 case Type .RecursiveThis (_) =>
16291629 this += highlightTypeDef(" this" , color)
16301630
1631+ case Type .IsMethodType (tpe) =>
1632+ this += " ("
1633+ printList(tpe.paramNames.zip(tpe.paramTypes), " , " ,
1634+ (paramName, paramType) => (this += paramName += " : " ).printType(paramType))
1635+ this += " )"
1636+ printType(tpe.resType)
1637+
1638+ case Type .IsPolyType (tpe) =>
1639+ this += " ["
1640+ printList(tpe.paramNames.zip(tpe.paramBounds), " , " ,
1641+ (paramName, paramBound) => (this += paramName += " " ).printTypeOrBound(paramBound))
1642+ this += " ]"
1643+ printType(tpe.resType)
1644+
1645+ case Type .IsTypeLambda (tpe) =>
1646+ this += " ["
1647+ printList(tpe.paramNames.zip(tpe.paramBounds), " , " ,
1648+ (paramName, paramBound) => (this += paramName += " " ).printTypeOrBound(paramBound))
1649+ this += " ] => "
1650+ printType(tpe.resType)
16311651 case _ =>
16321652 throw new MatchError (tpe.showExtractors)
16331653 }
You can’t perform that action at this time.
0 commit comments