diff options
Diffstat (limited to 'dottydoc/shared')
-rw-r--r-- | dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/comment/BodyEntities.scala | 2 | ||||
-rw-r--r-- | dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/comment/BodyEntities.scala b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/comment/BodyEntities.scala index b8918c493..ef8343d77 100644 --- a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/comment/BodyEntities.scala +++ b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/comment/BodyEntities.scala @@ -105,5 +105,5 @@ final case class OrTypeReference(left: Reference, right: Reference) extends Refe final case class AndTypeReference(left: Reference, right: Reference) extends Reference final case class FunctionReference(args: List[Reference], returnValue: Reference) extends Reference final case class BoundsReference(low: Reference, high: Reference) extends Reference -final case class NamedReference(title: String, ref: Reference, isByName: Boolean = false) extends Reference +final case class NamedReference(title: String, ref: Reference, isByName: Boolean = false, isRepeated: Boolean = false) extends Reference final case class ConstantReference(title: String) extends Reference 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 a48f6d9b0..bd38701d9 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 @@ -50,6 +50,8 @@ object factories { } def returnType(t: Type)(implicit ctx: Context): Reference = { + val defn = ctx.definitions + def typeRef(name: String, query: String = "", params: List[Reference] = Nil) = { val realQuery = if (query != "") query else name TypeReference(name, UnsetLink(name, realQuery), params) @@ -123,7 +125,12 @@ object factories { case mt: MethodType => mt.paramNames.zip(mt.paramTypes).map { case (name, tpe) => - NamedReference(name.decode.toString, returnType(tpe), tpe.isInstanceOf[ExprType]) + NamedReference( + name.decode.toString, + returnType(tpe), + isByName = tpe.isInstanceOf[ExprType], + isRepeated = tpe.isRepeatedParam + ) } :: paramLists(mt.resultType) case annot: AnnotatedType => paramLists(annot.tpe) |