aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-11-12 13:55:11 +0300
committerGitHub <noreply@github.com>2021-11-12 13:55:11 +0300
commit0303fa827f9fea9c11fefbce1045536183ccd688 (patch)
tree59b94b76abeb6d7949694e02b51e1c4ba2a0fda8 /core/src
parent4a1b8a981389a0459284ba62aa5d00cc0d44e454 (diff)
downloaddokka-0303fa827f9fea9c11fefbce1045536183ccd688.tar.gz
dokka-0303fa827f9fea9c11fefbce1045536183ccd688.tar.bz2
dokka-0303fa827f9fea9c11fefbce1045536183ccd688.zip
Store checked exceptions into `ExtraProperties` (#2222)
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/model/documentableProperties.kt10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/src/main/kotlin/model/documentableProperties.kt b/core/src/main/kotlin/model/documentableProperties.kt
index 90ab3053..87f40bd6 100644
--- a/core/src/main/kotlin/model/documentableProperties.kt
+++ b/core/src/main/kotlin/model/documentableProperties.kt
@@ -37,4 +37,12 @@ data class ExceptionInSupertypes(val exceptions: SourceSetDependent<List<TypeCon
object ObviousMember : ExtraProperty<Documentable>, ExtraProperty.Key<Documentable, ObviousMember> {
override val key: ExtraProperty.Key<Documentable, *> = this
-} \ No newline at end of file
+}
+
+data class CheckedExceptions(val exceptions: SourceSetDependent<List<DRI>>) : ExtraProperty<Documentable>, ExtraProperty.Key<Documentable, ObviousMember> {
+ companion object : ExtraProperty.Key<Documentable, CheckedExceptions> {
+ override fun mergeStrategyFor(left: CheckedExceptions, right: CheckedExceptions) =
+ MergeStrategy.Replace(CheckedExceptions(left.exceptions + right.exceptions))
+ }
+ override val key: ExtraProperty.Key<Documentable, *> = CheckedExceptions
+}