diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-01-18 17:44:30 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-31 14:32:39 +0100 |
commit | 6c07096250f18add02fbd8573211e4004872b9c9 (patch) | |
tree | 1611ec77728d9aaafdfa8dc40ff9aeaa1db748c8 /doc-tool/src/dotty/tools/dottydoc/model | |
parent | 25821bfc25685ab648dd6eb1a11d0f8991a07a75 (diff) | |
download | dotty-6c07096250f18add02fbd8573211e4004872b9c9.tar.gz dotty-6c07096250f18add02fbd8573211e4004872b9c9.tar.bz2 dotty-6c07096250f18add02fbd8573211e4004872b9c9.zip |
Add ability to remove nodes from tree in AST traversal
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/model/entities.scala | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala index a04898740..a40666e0d 100644 --- a/doc-tool/src/dotty/tools/dottydoc/model/entities.scala +++ b/doc-tool/src/dotty/tools/dottydoc/model/entities.scala @@ -118,14 +118,25 @@ trait Def extends Entity with Modifiers with TypeParams with ReturnValue with Im trait Val extends Entity with Modifiers with ReturnValue with ImplicitlyAddedEntity -trait NonEntity extends Entity { +sealed trait NonEntity extends Package with TypeAlias with Class with CaseClass with Trait with Object with Def with Val { + override val kind = "" val annotations = Nil val name = "" val symbol = NoSymbol val comment = None val path = Nil - val kind = "" val parent = NonEntity + val constructors = Nil + val paramLists = Nil + val implicitlyAddedFrom = None + val members = Nil + val modifiers = Nil + val reference = EmptyReference + val returnValue = EmptyReference + val superTypes = Nil + val typeParams = Nil + val traitParams = Nil + val alias = None } final case object NonEntity extends NonEntity |