diff options
author | vmishenev <vad-mishenev@yandex.ru> | 2023-07-24 20:34:36 +0300 |
---|---|---|
committer | vmishenev <vad-mishenev@yandex.ru> | 2023-07-24 20:34:36 +0300 |
commit | 900fbccf3da483946227d99ce52b71afe0e62007 (patch) | |
tree | f2470207bf9b5bf97b39c0d80d7fe62de52b307b /subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin | |
parent | f5393dd740eaf533fe9ff51003b175ef1c1418fe (diff) | |
download | dokka-900fbccf3da483946227d99ce52b71afe0e62007.tar.gz dokka-900fbccf3da483946227d99ce52b71afe0e62007.tar.bz2 dokka-900fbccf3da483946227d99ce52b71afe0e62007.zip |
Introduce system property to ignore common builtIns for stdlib
Diffstat (limited to 'subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin')
-rw-r--r-- | subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/KotlinAnalysis.kt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/KotlinAnalysis.kt b/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/KotlinAnalysis.kt index b4a1b8f7..b7a5afd6 100644 --- a/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/KotlinAnalysis.kt +++ b/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/KotlinAnalysis.kt @@ -56,8 +56,14 @@ internal class DokkaAnalysisConfiguration( * Only for common platform ignore BuiltIns for StdLib since it can cause a conflict * between BuiltIns from a compiler and ones from source code. */ - val ignoreCommonBuiltIns: Boolean = false -) + val ignoreCommonBuiltIns: Boolean = shouldIgnoreCommonBuiltIns() +) { + companion object { + private const val SHOULD_IGNORE_COMMON_BUILT_INS_SYS_PROP = "dokka.shouldIgnoreCommonBuiltIns" + internal fun shouldIgnoreCommonBuiltIns() = + System.getProperty(SHOULD_IGNORE_COMMON_BUILT_INS_SYS_PROP) in listOf("true", "1") + } +} /** * First child delegation. It does not close [parent]. |