Skip to content

Commit

Permalink
Introduce system property to ignore common builtIns for stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Jul 24, 2023
1 parent f5393dd commit 900fbcc
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down

0 comments on commit 900fbcc

Please sign in to comment.