Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaladoc: fix inkuire generation for PolyTypes #17129

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scaladoc/src/dotty/tools/scaladoc/tasty/InkuireSupport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ trait InkuireSupport(using DocContext) extends Resources:
inner(tpe, vars)
case tl @ TypeLambda(paramNames, _, resType) =>
Inkuire.TypeLambda(paramNames.map(Inkuire.TypeLambda.argument), inner(resType, vars)) //TODO [Inkuire] Type bounds
case pt @ PolyType(paramNames, _, resType) =>
Inkuire.TypeLambda(paramNames.map(Inkuire.TypeLambda.argument), inner(resType, vars)) //TODO [Inkuire] Type bounds
case r: Refinement =>
inner(r.info, vars) //TODO [Inkuire] Refinements
case t @ AppliedType(tpe, typeList) =>
Expand Down Expand Up @@ -357,10 +359,8 @@ trait InkuireSupport(using DocContext) extends Resources:
Inkuire.Type.unresolved //TODO [Inkuire] <- should be handled by Singleton case, but didn't work
case MatchType(bond, sc, cases) =>
inner(sc, vars)
case ParamRef(TypeLambda(names, _, _), i) =>
Inkuire.TypeLambda.argument(names(i))
case ParamRef(m: MethodType, i) =>
inner(m.paramTypes(i), vars)
case ParamRef(binder: LambdaType, i) =>
Inkuire.TypeLambda.argument(binder.paramNames(i))
case RecursiveType(tp) =>
inner(tp, vars)
case m@MethodType(_, typeList, resType) =>
Expand Down