aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/TestAPI.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-06-04 16:23:34 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-07-14 23:57:13 +0300
commit23861925232505dbd70344a1d690f2475bb022e8 (patch)
treef5fab8081b700c9553a4d925de0de70a9ced7b37 /core/src/test/kotlin/TestAPI.kt
parentadee5c45d9b9b47a38fa0124b97c85c8733476e8 (diff)
downloaddokka-23861925232505dbd70344a1d690f2475bb022e8.tar.gz
dokka-23861925232505dbd70344a1d690f2475bb022e8.tar.bz2
dokka-23861925232505dbd70344a1d690f2475bb022e8.zip
[backport] Introduce option to enable/disable jdk linking
Original: 8e9e768
Diffstat (limited to 'core/src/test/kotlin/TestAPI.kt')
-rw-r--r--core/src/test/kotlin/TestAPI.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt
index aeff9284..953e3bab 100644
--- a/core/src/test/kotlin/TestAPI.kt
+++ b/core/src/test/kotlin/TestAPI.kt
@@ -39,6 +39,7 @@ fun verifyModel(vararg roots: ContentRoot,
perPackageOptions = perPackageOptions,
generateIndexPages = false,
noStdlibLink = noStdlibLink,
+ noJdkLink = false,
cacheRoot = "default",
languageVersion = null,
apiVersion = null,
@@ -269,6 +270,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")
}