aboutsummaryrefslogtreecommitdiff
path: root/dottydoc/shared/src
diff options
context:
space:
mode:
Diffstat (limited to 'dottydoc/shared/src')
-rw-r--r--dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/Entity.scala2
-rw-r--r--dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/EntityFactories.scala4
2 files changed, 6 insertions, 0 deletions
diff --git a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/Entity.scala b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/Entity.scala
index 675bc8319..5acdfee33 100644
--- a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/Entity.scala
+++ b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/Entity.scala
@@ -99,6 +99,7 @@ object Entities {
name: String,
modifiers: List[String],
path: List[String],
+ returnValue: String,
var comment: Option[Comment] = None
) extends Entity with Modifiers {
override val kind = "def"
@@ -109,6 +110,7 @@ object Entities {
name: String,
modifiers: List[String],
path: List[String],
+ returnValue: String,
var comment: Option[Comment] = None
) extends Entity with Modifiers {
override val kind = "val"
diff --git a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/EntityFactories.scala b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/EntityFactories.scala
index 09510a1f8..9de1cf6ad 100644
--- a/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/EntityFactories.scala
+++ b/dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/EntityFactories.scala
@@ -34,4 +34,8 @@ object EntityFactories {
pathList(ref)
}
+
+ // TODO: should be updated to link to local entities
+ def returnType(t: Tree)(implicit ctx: Context): String =
+ t.show
}