aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-01-13 11:39:48 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-01-31 14:31:08 +0100
commit2c08c956d39d9a06b3c5aa7eddc3b8c903f807df (patch)
treee0440216f9c70a023491f0e1ef00a0154b5806ee /doc-tool/src/dotty/tools/dottydoc/model/entities.scala
parent64a13956d5611117c7ec4913a79363694f1e70c3 (diff)
downloaddotty-2c08c956d39d9a06b3c5aa7eddc3b8c903f807df.tar.gz
dotty-2c08c956d39d9a06b3c5aa7eddc3b8c903f807df.tar.bz2
dotty-2c08c956d39d9a06b3c5aa7eddc3b8c903f807df.zip
Add annotations to doc AST
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model/entities.scala')
-rw-r--r--doc-tool/src/dotty/tools/dottydoc/model/entities.scala13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
index 52379f9ad..aea09f745 100644
--- a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
+++ b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala
@@ -19,6 +19,8 @@ trait Entity {
def parent: Entity
+ def annotations: List[String]
+
/** All parents from package level i.e. Package to Object to Member etc */
def parents: List[Entity] = parent match {
case NonEntity => Nil
@@ -105,12 +107,13 @@ trait Var extends Entity with Modifiers with ReturnValue {
}
trait NonEntity extends Entity {
- val name = ""
- val symbol = NoSymbol
+ val annotations = Nil
+ val name = ""
+ val symbol = NoSymbol
val comment = None
- val path = Nil
- val kind = ""
- val parent = NonEntity
+ val path = Nil
+ val kind = ""
+ val parent = NonEntity
}
final case object NonEntity extends NonEntity