Skip to content

Commit 3646e8f

Browse files
2mKacperFKorban
andauthored
Add FlexibleType support for scaladoc (#23320)
Scala Tooling Spree PR. //cc @KacperFKorban Fixes #22761 --------- Co-authored-by: Kacper Korban <[email protected]>
1 parent b872039 commit 3646e8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/InkuireSupport.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ trait InkuireSupport(using DocContext) extends Resources:
315315
inner(tpe, vars) //TODO [Inkuire] Repeated types
316316
case AnnotatedType(tpe, _) =>
317317
inner(tpe, vars)
318+
case FlexibleType(tpe) =>
319+
inner(tpe, vars)
318320
case tl @ TypeLambda(paramNames, _, resType) =>
319321
Inkuire.TypeLambda(paramNames.map(Inkuire.TypeLambda.argument), inner(resType, vars)) //TODO [Inkuire] Type bounds
320322
case pt @ PolyType(paramNames, _, resType) =>

scaladoc/src/dotty/tools/scaladoc/tasty/TypesSupport.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ trait TypesSupport:
118118
inner(tpe, skipThisTypePrefix) :+ plain("*")
119119
case AnnotatedType(tpe, _) =>
120120
inner(tpe, skipThisTypePrefix)
121+
case FlexibleType(tpe) =>
122+
inner(tpe, skipThisTypePrefix)
121123
case tl @ TypeLambda(params, paramBounds, AppliedType(tpe, args))
122124
if paramBounds.forall { case TypeBounds(low, hi) => low.typeSymbol == defn.NothingClass && hi.typeSymbol == defn.AnyClass }
123125
&& params.length == args.length

0 commit comments

Comments
 (0)