aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/documentableProperties.kt
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2020-10-15 09:40:09 +0200
committerGitHub <noreply@github.com>2020-10-15 09:40:09 +0200
commitbf5e18fd1694882a318e204be6a31bc1757db72d (patch)
treeeddc619638733a6b5822d6a95855842bf6bf1102 /core/src/main/kotlin/model/documentableProperties.kt
parent7e2678e5e182afc10c3ca98107aae3c7590b909b (diff)
downloaddokka-bf5e18fd1694882a318e204be6a31bc1757db72d.tar.gz
dokka-bf5e18fd1694882a318e204be6a31bc1757db72d.tar.bz2
dokka-bf5e18fd1694882a318e204be6a31bc1757db72d.zip
IsException should also be true when class inherits from Exception (#1558)
Diffstat (limited to 'core/src/main/kotlin/model/documentableProperties.kt')
-rw-r--r--core/src/main/kotlin/model/documentableProperties.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/main/kotlin/model/documentableProperties.kt b/core/src/main/kotlin/model/documentableProperties.kt
index 2845c7fc..991f5311 100644
--- a/core/src/main/kotlin/model/documentableProperties.kt
+++ b/core/src/main/kotlin/model/documentableProperties.kt
@@ -25,3 +25,12 @@ data class ImplementedInterfaces(val interfaces: SourceSetDependent<List<TypeCon
override val key: ExtraProperty.Key<Documentable, *> = ImplementedInterfaces
}
+
+data class ExceptionInSupertypes(val exceptions: SourceSetDependent<List<TypeConstructor>>): ExtraProperty<Documentable> {
+ companion object : ExtraProperty.Key<Documentable, ExceptionInSupertypes> {
+ override fun mergeStrategyFor(left: ExceptionInSupertypes, right: ExceptionInSupertypes) =
+ MergeStrategy.Replace(ExceptionInSupertypes(left.exceptions + right.exceptions))
+ }
+
+ override val key: ExtraProperty.Key<Documentable, *> = ExceptionInSupertypes
+} \ No newline at end of file