blob: b3ce7c5c8a2ddfb447102f11044be4dfa71b0778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package org.jetbrains.dokka.base.translators.documentables
import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.analysis.PsiDocumentableSource
import org.jetbrains.dokka.model.WithSources
internal enum class DocumentableLanguage {
JAVA, KOTLIN
}
internal fun WithSources.documentableLanguage(sourceSet: DokkaConfiguration.DokkaSourceSet): DocumentableLanguage =
when (sources[sourceSet]) {
is PsiDocumentableSource -> DocumentableLanguage.JAVA
else -> DocumentableLanguage.KOTLIN
}
|