diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-02-13 16:21:13 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-02-22 21:30:20 +0100 |
commit | 859aca9616aaeebf918c642da4610669b3c00b2d (patch) | |
tree | df1a4608bc929b2ac5abcae47f72ffeeb8e7df75 /doc-tool/src/dotty/tools/dottydoc/model/entities.scala | |
parent | 43612f97cca568e0d48f44aad80d203d452d258e (diff) | |
download | dotty-859aca9616aaeebf918c642da4610669b3c00b2d.tar.gz dotty-859aca9616aaeebf918c642da4610669b3c00b2d.tar.bz2 dotty-859aca9616aaeebf918c642da4610669b3c00b2d.zip |
Fix hiding of `[+]` (find issue nbr)
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model/entities.scala')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/model/entities.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala index 9cbd1f6c8..d35077816 100644 --- a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala +++ b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala @@ -21,6 +21,9 @@ trait Entity { entity => def annotations: List[String] + def hasShortenedDocstring: Boolean = + comment.map(d => d.body.length > d.short.length).getOrElse(false) + def signature: String = entity.name + (entity match { case o: Object => "$" |