blob: 349b398be21cf3ca7aafdab7757af8db712a5b23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.dokka.validity
public fun interface PreGenerationChecker : () -> PreGenerationCheckerOutput {
override fun invoke(): PreGenerationCheckerOutput
}
public data class PreGenerationCheckerOutput(val result: Boolean, val messages: List<String>) {
public operator fun plus(pair: Pair<Boolean, List<String>>): Pair<Boolean, List<String>> {
return Pair(result && pair.first, messages + pair.second)
}
}
|