diff options
author | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-16 16:56:11 +0300 |
---|---|---|
committer | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-16 17:05:25 +0300 |
commit | 755b701a4720bf1d0690935898f46dd36c205936 (patch) | |
tree | ec2af23fc2a4c28c1b0e4f1d73ee55bd26845cf4 /core/src/test/kotlin/TestAPI.kt | |
parent | b3e33f620a387d4623ed7f6d7665fcbed98efffb (diff) | |
parent | f30807f4e78939fb59f8e46c39b3e538070aacfd (diff) | |
download | dokka-755b701a4720bf1d0690935898f46dd36c205936.tar.gz dokka-755b701a4720bf1d0690935898f46dd36c205936.tar.bz2 dokka-755b701a4720bf1d0690935898f46dd36c205936.zip |
Merge branch 'devsite-fixes-backport' into dev-multiplatf
# Conflicts:
# core/src/main/kotlin/Analysis/AnalysisEnvironment.kt
# core/src/test/kotlin/TestAPI.kt
Diffstat (limited to 'core/src/test/kotlin/TestAPI.kt')
-rw-r--r-- | core/src/test/kotlin/TestAPI.kt | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt index ae69412b..4a755130 100644 --- a/core/src/test/kotlin/TestAPI.kt +++ b/core/src/test/kotlin/TestAPI.kt @@ -26,7 +26,9 @@ data class ModelConfig( val includeNonPublic: Boolean = true, val perPackageOptions: List<DokkaConfiguration.PackageOptions> = emptyList(), val analysisPlatform: Platform = Platform.DEFAULT, - val defaultPlatforms: List<String> = emptyList() + val defaultPlatforms: List<String> = emptyList(), + val noStdlibLink: Boolean = true, + val collectInheritedExtensionsFromLibraries: Boolean = false ) fun verifyModel(modelConfig: ModelConfig, @@ -42,10 +44,12 @@ fun verifyModel(modelConfig: ModelConfig, sourceLinks = listOf(), perPackageOptions = modelConfig.perPackageOptions, generateIndexPages = false, - noStdlibLink = true, + noStdlibLink = modelConfig.noStdlibLink, + noJdkLink = false, cacheRoot = "default", languageVersion = null, - apiVersion = null + apiVersion = null, + collectInheritedExtensionsFromLibraries = modelConfig.collectInheritedExtensionsFromLibraries ) appendDocumentation(documentation, options, modelConfig) @@ -201,8 +205,10 @@ fun verifyOutput(path: String, withKotlinRuntime = modelConfig.withKotlinRuntime, format = modelConfig.format, includeNonPublic = modelConfig.includeNonPublic, - analysisPlatform = modelConfig.analysisPlatform - ), + analysisPlatform = modelConfig.analysisPlatform, + noStdlibLink = modelConfig.noStdlibLink, + collectInheritedExtensionsFromLibraries = modelConfig.collectInheritedExtensionsFromLibraries + ), outputExtension, outputGenerator ) @@ -274,6 +280,14 @@ fun StringBuilder.appendNode(node: ContentNode): StringBuilder { is ContentBlock -> { appendChildren(node) } + is NodeRenderContent -> { + append("render(") + append(node.node) + append(",") + append(node.mode) + append(")") + } + is ContentSymbol -> { append(node.text) } is ContentEmpty -> { /* nothing */ } else -> throw IllegalStateException("Don't know how to format node $node") } |