diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-04-27 17:28:45 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-08-19 15:37:20 +0200 |
commit | 32b4a9c331d9a078aa50db554667ca908eb8a344 (patch) | |
tree | a2a25f7756ae430861b9ae37d1feca55efd2507c /dottydoc/shared/src | |
parent | 46ac1bfe42d408dffd74a89bd2d9e3d13b68ee12 (diff) | |
download | dotty-32b4a9c331d9a078aa50db554667ca908eb8a344.tar.gz dotty-32b4a9c331d9a078aa50db554667ca908eb8a344.tar.bz2 dotty-32b4a9c331d9a078aa50db554667ca908eb8a344.zip |
Add initial return values to members - to be updated
This commit adds return values to defs and vals - but does not provide
a link to these. This is to be continued
Diffstat (limited to 'dottydoc/shared/src')
-rw-r--r-- | dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/Entity.scala | 2 | ||||
-rw-r--r-- | dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/EntityFactories.scala | 4 |
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 } |