We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a956774 commit 4a8e1d0Copy full SHA for 4a8e1d0
scaladoc/src/dotty/tools/scaladoc/tasty/TypesSupport.scala
@@ -272,6 +272,17 @@ trait TypesSupport:
272
273
case RecursiveType(tp) => inner(tp)
274
275
+ case MatchCase(pattern, rhs) =>
276
+ texts("case ") ++ inner(pattern) ++ texts(" => ") ++ inner(rhs)
277
+
278
+ case t: dotty.tools.dotc.core.Types.LazyRef => try {
279
+ inner(t.ref(using ctx.compilerContext).asInstanceOf[TypeRepr])
280
+ } catch {
281
+ case e: AssertionError => texts("LazyRef(...)")
282
+ }
283
284
+ case tpe => throw MatchError(tpe.show(using Printer.TypeReprStructure))
285
286
private def typeBound(using Quotes)(t: reflect.TypeRepr, low: Boolean) =
287
import reflect._
288
val ignore = if (low) t.typeSymbol == defn.NothingClass else t.typeSymbol == defn.AnyClass
0 commit comments