Skip to content

Commit a15b14f

Browse files
committed
Fix dotty-doc to take account of refactorings
1 parent cdc91e2 commit a15b14f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc-tool/src/dotty/tools/dottydoc/model/factories.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ object factories {
7979
case TypeBounds(lo, hi) =>
8080
BoundsReference(expandTpe(lo), expandTpe(hi))
8181

82-
case t: PolyParam =>
82+
case t: TypeParamRef =>
8383
typeRef(t.paramName.show, params = params)
8484

8585
case ExprType(tpe) =>
@@ -160,7 +160,7 @@ object factories {
160160
paramLists(pt.resultType)
161161

162162
case mt: MethodType =>
163-
ParamListImpl(mt.paramNames.zip(mt.paramTypes).map { case (name, tpe) =>
163+
ParamListImpl(mt.paramNames.zip(mt.paramInfos).map { case (name, tpe) =>
164164
NamedReference(
165165
name.decode.toString,
166166
returnType(tpe),
@@ -169,13 +169,13 @@ object factories {
169169
)
170170
}, mt.isImplicit) :: paramLists(mt.resultType)
171171

172-
case mp: MethodParam =>
172+
case mp: TermParamRef =>
173173
paramLists(mp.underlying)
174174

175175
case annot: AnnotatedType =>
176176
paramLists(annot.tpe)
177177

178-
case (_: PolyParam | _: RefinedType | _: TypeRef | _: ThisType |
178+
case (_: TypeParamRef | _: RefinedType | _: TypeRef | _: ThisType |
179179
_: ExprType | _: OrType | _: AndType | _: HKApply |
180180
_: TermRef | _: ConstantType) =>
181181
Nil // return types should not be in the paramlist

0 commit comments

Comments
 (0)