diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-08-17 14:53:32 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-08-19 15:37:35 +0200 |
commit | d8c02ec2f8ef225fde2be5324bbf46958132d865 (patch) | |
tree | 989783d86b7c052b8c3450f141c9186c5e2a669b | |
parent | 59c6c0d1bb1e889ee728931576a461e3014e3cf3 (diff) | |
download | dotty-d8c02ec2f8ef225fde2be5324bbf46958132d865.tar.gz dotty-d8c02ec2f8ef225fde2be5324bbf46958132d865.tar.bz2 dotty-d8c02ec2f8ef225fde2be5324bbf46958132d865.zip |
Add `ImplicitlyAddedEntity` as a common trait for implicitly added members
-rw-r--r-- | dottydoc/src/dotty/tools/dottydoc/model/entities.scala | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dottydoc/src/dotty/tools/dottydoc/model/entities.scala b/dottydoc/src/dotty/tools/dottydoc/model/entities.scala index 1c204662b..4d3a33b33 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 ImplicitlyAddedEntity extends Entity { + def implicitlyAddedFrom: Option[Reference] +} + trait Package extends Entity with Members { val kind = "package" @@ -79,15 +83,13 @@ trait Object extends Entity with Modifiers with SuperTypes with Members { override val kind = "object" } -trait Def extends Entity with Modifiers with TypeParams with ReturnValue { +trait Def extends Entity with Modifiers with TypeParams with ReturnValue with ImplicitlyAddedEntity { val kind = "def" def paramLists: List[ParamList] - def implicitlyAddedFrom: Option[Reference] } -trait Val extends Entity with Modifiers with ReturnValue { +trait Val extends Entity with Modifiers with ReturnValue with ImplicitlyAddedEntity { val kind = "val" - def implicitlyAddedFrom: Option[Reference] } trait Var extends Entity with Modifiers with ReturnValue { |