aboutsummaryrefslogtreecommitdiff
path: root/dottydoc
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-07-20 17:26:49 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-08-19 15:37:31 +0200
commitc05d62817bda480d16366a8c2041287c1524dadb (patch)
tree9cab7fd574221ebfdfcb583d1ccf6a5e471265ff /dottydoc
parent5d6c15f023b07fd3b6a62b31a1ab32911b9ca01a (diff)
downloaddotty-c05d62817bda480d16366a8c2041287c1524dadb.tar.gz
dotty-c05d62817bda480d16366a8c2041287c1524dadb.tar.bz2
dotty-c05d62817bda480d16366a8c2041287c1524dadb.zip
Change from absolute name to type name in link names
Diffstat (limited to 'dottydoc')
-rw-r--r--dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala7
1 files changed, 5 insertions, 2 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 c6ef6cb35..c18465c65 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
@@ -76,8 +76,11 @@ object factories {
FunctionReference(args.init.map(expandTpe(_, Nil)), expandTpe(args.last))
else if (defn.isTupleClass(cls))
TupleReference(args.map(expandTpe(_, Nil)))
- else
- typeRef(tycon.show, params = args.map(expandTpe(_, Nil)))
+ else {
+ val query = tycon.show
+ val name = query.split("\\.").last
+ typeRef(name, query, params = args.map(expandTpe(_, Nil)))
+ }
case ref @ RefinedType(parent, rn, info) =>
expandTpe(parent) //FIXME: will be a refined HK, aka class Foo[X] { def bar: List[X] } or similar