aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/validity
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/validity')
-rw-r--r--core/src/main/kotlin/validity/PreGenerationChecker.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/main/kotlin/validity/PreGenerationChecker.kt b/core/src/main/kotlin/validity/PreGenerationChecker.kt
index 09284528..349b398b 100644
--- a/core/src/main/kotlin/validity/PreGenerationChecker.kt
+++ b/core/src/main/kotlin/validity/PreGenerationChecker.kt
@@ -4,13 +4,14 @@
package org.jetbrains.dokka.validity
-fun interface PreGenerationChecker : () -> PreGenerationCheckerOutput {
+public fun interface PreGenerationChecker : () -> PreGenerationCheckerOutput {
override fun invoke(): PreGenerationCheckerOutput
}
-data class PreGenerationCheckerOutput(val result: Boolean, val messages: List<String>) {
+public data class PreGenerationCheckerOutput(val result: Boolean, val messages: List<String>) {
- operator fun plus(pair: Pair<Boolean, List<String>>) =
- Pair(result && pair.first, messages + pair.second)
+ public operator fun plus(pair: Pair<Boolean, List<String>>): Pair<Boolean, List<String>> {
+ return Pair(result && pair.first, messages + pair.second)
+ }
}