aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-01-18 11:03:43 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-01-31 14:32:39 +0100
commit25821bfc25685ab648dd6eb1a11d0f8991a07a75 (patch)
treec204d26687f78c6a2c8f830059cca707b3d4b3af /doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala
parent8b9b98a22f364a35e32b674b9ef5188bee15a2c9 (diff)
downloaddotty-25821bfc25685ab648dd6eb1a11d0f8991a07a75.tar.gz
dotty-25821bfc25685ab648dd6eb1a11d0f8991a07a75.tar.bz2
dotty-25821bfc25685ab648dd6eb1a11d0f8991a07a75.zip
Rewire `MemberLookup` to return `Option[Entity]`
This allows for the rendering engine to supply the base url for the site and thus being able to simplify the entity links. They now simply become `Entity#path + .html` instead of a convoluted rendering in the html renderers.
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala')
-rw-r--r--doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala b/doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala
index 13d74d4b3..176dab569 100644
--- a/doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala
+++ b/doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala
@@ -335,7 +335,7 @@ private[comment] final class WikiParser(
case (SchemeUri(uri), optTitle) =>
Link(uri, optTitle getOrElse Text(uri))
case (qualName, optTitle) =>
- makeEntityLink(entity, packages, optTitle getOrElse Text(target), pos, target)
+ makeEntityLink(entity, packages, optTitle getOrElse Text(target), target)
}
}