diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-01-17 09:51:11 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-31 14:32:38 +0100 |
commit | abb54e75568f38bcc3f731de137b67e59752e4d7 (patch) | |
tree | 336ca828ac323c4bc19f0144f9cbcfffc680d29a /doc-tool/src/dotty/tools/dottydoc/model | |
parent | 9a581bc15aa300f665428c804611453609955f60 (diff) | |
download | dotty-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.scala | 8 | ||||
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/model/internal.scala | 1 |
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 |