aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
diff options
context:
space:
mode:
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model/entities.scala')
-rw-r--r--doc-tool/src/dotty/tools/dottydoc/model/entities.scala3
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 => "$"