Skip to content

Commit 07feee9

Browse files
committed
Generalize PolyType to TypeLambda in dotty-doc
1 parent cf4393c commit 07feee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ object factories {
106106
case ci: ClassInfo =>
107107
typeRef(ci.cls.name.show, query = ci.typeSymbol.showFullName)
108108

109-
case tl: PolyType =>
109+
case tl: TypeLambda =>
110110
expandTpe(tl.resType)
111111

112112
case OrType(left, right) =>
@@ -127,7 +127,7 @@ object factories {
127127

128128
def typeParams(sym: Symbol)(implicit ctx: Context): List[String] =
129129
sym.info match {
130-
case pt: PolyType => // TODO: not sure if this case is needed anymore
130+
case pt: TypeLambda => // TODO: not sure if this case is needed anymore
131131
pt.paramNames.map(_.show.split("\\$").last)
132132
case ClassInfo(_, _, _, decls, _) =>
133133
decls.iterator
@@ -156,7 +156,7 @@ object factories {
156156
constructors(sym).head
157157

158158
def paramLists(tpe: Type)(implicit ctx: Context): List[ParamList] = tpe match {
159-
case pt: PolyType =>
159+
case pt: TypeLambda =>
160160
paramLists(pt.resultType)
161161

162162
case mt: MethodType =>

0 commit comments

Comments
 (0)