@@ -311,8 +311,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
311
311
case Term .Repeated (elems) =>
312
312
printTrees(elems, " , " )
313
313
314
- case Term . SelectOuter (_, _, _) =>
315
- ???
314
+ case _ =>
315
+ throw new MatchError (tree.show)
316
316
317
317
}
318
318
@@ -528,8 +528,13 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
528
528
}
529
529
530
530
def printTypeOrBoundsTree (tpt : TypeOrBoundsTree ): Buffer = tpt match {
531
- case TypeBoundsTree (lo, hi) => ???
532
- case tpt@ Type () => printType(tpt)
531
+ case TypeBoundsTree (lo, hi) =>
532
+ this += " >: "
533
+ printTypeTree(lo)
534
+ this += " <: "
535
+ printTypeTree(hi)
536
+ case tpt@ Type () =>
537
+ printType(tpt)
533
538
}
534
539
535
540
def printTypeTree (tree : TypeTree ): Buffer = tree match {
@@ -582,6 +587,9 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
582
587
this += " => "
583
588
printTypeTree(result)
584
589
590
+ case _ =>
591
+ throw new MatchError (tree.show)
592
+
585
593
}
586
594
587
595
def printTypeOrBound (tpe : TypeOrBounds ): Buffer = tpe match {
@@ -631,9 +639,6 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
631
639
}
632
640
this += name.stripSuffix(" $" )
633
641
634
- case Type .SuperType (thistpe, supertpe) =>
635
- ???
636
-
637
642
case Type .Refinement (parent, name, info) =>
638
643
printType(parent)
639
644
// TODO add refinements
@@ -661,26 +666,11 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
661
666
this += " => "
662
667
printType(tp)
663
668
664
- case Type .ParamRef (binder, idx) =>
665
- ???
666
-
667
669
case Type .ThisType (tp) =>
668
670
printType(tp)
669
671
670
- case Type .RecursiveThis (rec) =>
671
- ???
672
-
673
- case Type .RecursiveType (tp) =>
674
- ???
675
-
676
- case Type .MethodType (paramNames, paramTypes, resType) =>
677
- ???
678
-
679
- case Type .PolyType (paramNames, paramBounds, resType) =>
680
- ???
681
-
682
- case Type .TypeLambda (paramNames, paramBounds, resType) =>
683
- ???
672
+ case _ =>
673
+ throw new MatchError (tpe.show)
684
674
}
685
675
686
676
def printImportSelector (sel : ImportSelector ): Buffer = sel match {
0 commit comments