aboutsummaryrefslogtreecommitdiff
path: root/dottydoc/src/dotty/tools/dottydoc/model/entities.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-08-19 15:28:39 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-08-21 15:51:57 +0200
commit0b69be68d3100103ebfd636bbc36f9cdcbd6fb28 (patch)
tree2b7a1db4beda3963cdddfd4ce86d9d8d9108f5a0 /dottydoc/src/dotty/tools/dottydoc/model/entities.scala
parentd8c02ec2f8ef225fde2be5324bbf46958132d865 (diff)
downloaddotty-0b69be68d3100103ebfd636bbc36f9cdcbd6fb28.tar.gz
dotty-0b69be68d3100103ebfd636bbc36f9cdcbd6fb28.tar.bz2
dotty-0b69be68d3100103ebfd636bbc36f9cdcbd6fb28.zip
Add phase to deal with constructors
Diffstat (limited to 'dottydoc/src/dotty/tools/dottydoc/model/entities.scala')
-rw-r--r--dottydoc/src/dotty/tools/dottydoc/model/entities.scala9
1 files changed, 7 insertions, 2 deletions
diff --git a/dottydoc/src/dotty/tools/dottydoc/model/entities.scala b/dottydoc/src/dotty/tools/dottydoc/model/entities.scala
index 4d3a33b33..76792070c 100644
--- a/dottydoc/src/dotty/tools/dottydoc/model/entities.scala
+++ b/dottydoc/src/dotty/tools/dottydoc/model/entities.scala
@@ -57,6 +57,10 @@ trait ParamList {
def isImplicit: Boolean
}
+trait Constructors {
+ def constructors: List[List[ParamList]]
+}
+
trait ImplicitlyAddedEntity extends Entity {
def implicitlyAddedFrom: Option[Reference]
}
@@ -67,15 +71,16 @@ trait Package extends Entity with Members {
def children: List[Entity with Members]
}
-trait Class extends Entity with Modifiers with TypeParams with SuperTypes with Members {
+trait Class extends Entity with Modifiers with TypeParams with Constructors with SuperTypes with Members {
val kind = "class"
}
-trait CaseClass extends Entity with Modifiers with TypeParams with SuperTypes with Members {
+trait CaseClass extends Entity with Modifiers with TypeParams with Constructors with SuperTypes with Members {
override val kind = "case class"
}
trait Trait extends Entity with Modifiers with TypeParams with SuperTypes with Members {
+ def traitParams: List[ParamList]
override val kind = "trait"
}