aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/src/dotty/tools/dottydoc/model
diff options
context:
space:
mode:
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