diff options
Diffstat (limited to 'dottydoc/shared')
-rw-r--r-- | dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala index a97ee2bb5..2dfc98c42 100644 --- a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala +++ b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala @@ -62,7 +62,11 @@ object factories { t.tparams.map(_.symbol.name.toString) def paramLists(t: DefDef)(implicit ctx: Context): List[List[(String, MaterializableLink)]] = { - Nil + def getParams(xs: List[ValDef]): List[(String, MaterializableLink)] = xs map { vd => + (vd.name.toString, UnsetLink(Text(vd.tpt.show), vd.tpt.show)) + } + + t.vparamss.map(getParams) } def filteredName(str: String) = str |