diff options
Diffstat (limited to 'dottydoc/shared/src/main')
-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 | 2 |
2 files changed, 2 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 526eff50c..d7ad4de71 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 @@ -103,5 +103,5 @@ sealed trait Reference final case class TypeReference(title: String, tpeLink: MaterializableLink, paramLinks: List[MaterializableLink]) extends Reference final case class OrTypeReference(left: Reference, right: Reference) extends Reference final case class AndTypeReference(left: Reference, right: Reference) extends Reference -final case class NamedReference(title: String, ref: Reference) extends Reference +final case class NamedReference(title: String, ref: Reference, isByName: 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 452c1a3b4..72e52a96f 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 @@ -113,7 +113,7 @@ object factories { case mt: MethodType => mt.paramNames.zip(mt.paramTypes).map { case (name, tpe) => - NamedReference(name.decode.toString, returnType(tpe)) + NamedReference(name.decode.toString, returnType(tpe), tpe.isInstanceOf[ExprType]) } :: paramLists(mt.resultType) case annot: AnnotatedType => paramLists(annot.tpe) |