aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/src/dotty/tools/dottydoc/model
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-01-17 09:51:11 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-01-31 14:32:38 +0100
commitabb54e75568f38bcc3f731de137b67e59752e4d7 (patch)
tree336ca828ac323c4bc19f0144f9cbcfffc680d29a /doc-tool/src/dotty/tools/dottydoc/model
parent9a581bc15aa300f665428c804611453609955f60 (diff)
downloaddotty-abb54e75568f38bcc3f731de137b67e59752e4d7.tar.gz
dotty-abb54e75568f38bcc3f731de137b67e59752e4d7.tar.bz2
dotty-abb54e75568f38bcc3f731de137b67e59752e4d7.zip
Add distinction between `var` and `val`
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model')
-rw-r--r--doc-tool/src/dotty/tools/dottydoc/model/entities.scala8
-rw-r--r--doc-tool/src/dotty/tools/dottydoc/model/internal.scala1
2 files changed, 2 insertions, 7 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
index 6f6e8d3e8..295b6568a 100644
--- a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
+++ b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
@@ -108,13 +108,7 @@ trait Def extends Entity with Modifiers with TypeParams with ReturnValue with Im
def paramLists: List[ParamList]
}
-trait Val extends Entity with Modifiers with ReturnValue with ImplicitlyAddedEntity {
- val kind = "val"
-}
-
-trait Var extends Entity with Modifiers with ReturnValue {
- val kind = "var"
-}
+trait Val extends Entity with Modifiers with ReturnValue with ImplicitlyAddedEntity
trait NonEntity extends Entity {
val annotations = Nil
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/internal.scala b/doc-tool/src/dotty/tools/dottydoc/model/internal.scala
index dd592c2e1..5bc410706 100644
--- a/doc-tool/src/dotty/tools/dottydoc/model/internal.scala
+++ b/doc-tool/src/dotty/tools/dottydoc/model/internal.scala
@@ -100,6 +100,7 @@ object internal {
modifiers: List[String],
path: List[String],
returnValue: Reference,
+ kind: String,
var comment: Option[Comment] = None,
implicitlyAddedFrom: Option[Reference] = None
) extends Val with Impl