aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/src/dotty/tools/dottydoc/core/TypeLinkingPhases.scala
diff options
context:
space:
mode:
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/core/TypeLinkingPhases.scala')
-rw-r--r--doc-tool/src/dotty/tools/dottydoc/core/TypeLinkingPhases.scala14
1 files changed, 2 insertions, 12 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/core/TypeLinkingPhases.scala b/doc-tool/src/dotty/tools/dottydoc/core/TypeLinkingPhases.scala
index 02f6ccb97..825cdf9ad 100644
--- a/doc-tool/src/dotty/tools/dottydoc/core/TypeLinkingPhases.scala
+++ b/doc-tool/src/dotty/tools/dottydoc/core/TypeLinkingPhases.scala
@@ -80,18 +80,8 @@ class LinkImplicitlyAddedTypes extends DocMiniPhase with TypeLinker {
trait TypeLinker extends MemberLookup {
def handleEntityLink(title: String, target: Option[Entity], ent: Entity, query: String = ""): MaterializableLink =
target match {
- case Some(target: Package) =>
- MaterializedLink(title, target.path.mkString("/") + "/index.html")
- case Some(target: TypeAlias) =>
- MaterializedLink(title, target.parent.path.mkString("/") + ".html#" + target.signature)
- case Some(target: Def) =>
- MaterializedLink(title, target.parent.path.mkString("/") + ".html#" + target.signature)
- case Some(target: Val) =>
- MaterializedLink(title, target.parent.path.mkString("/") + ".html#" + target.signature)
- case Some(target) =>
- MaterializedLink(title, target.path.mkString("/") + ".html")
- case none =>
- NoLink(title, query)
+ case Some(target) => new MaterializedLink(title, target)
+ case none => NoLink(title, query)
}
def linkReference(ent: Entity, ref: Reference, packs: Map[String, Package]): Reference = {