diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 04:23:51 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 04:23:51 +0400 |
commit | a6000809a34735ffe1c40bf07a9e291d3c767eb9 (patch) | |
tree | 9d32fe971859e8cd36cb302be204fcdccefe886d /test/src | |
parent | a83488aae453f1bf01cfb5507317acf0b9ddfb82 (diff) | |
download | dokka-a6000809a34735ffe1c40bf07a9e291d3c767eb9.tar.gz dokka-a6000809a34735ffe1c40bf07a9e291d3c767eb9.tar.bz2 dokka-a6000809a34735ffe1c40bf07a9e291d3c767eb9.zip |
Store descriptors instead of resolution scopes, rename Model -> Module
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/TestAPI.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt index 282697da..29a64366 100644 --- a/test/src/TestAPI.kt +++ b/test/src/TestAPI.kt @@ -5,7 +5,7 @@ import com.intellij.openapi.util.* import kotlin.test.fail import org.jetbrains.dokka.* -public fun verifyModel(vararg files: String, verifier: (DocumentationModel) -> Unit) { +public fun verifyModel(vararg files: String, verifier: (DocumentationModule) -> Unit) { val messageCollector = object : MessageCollector { override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation) { when (severity) { @@ -27,9 +27,9 @@ public fun verifyModel(vararg files: String, verifier: (DocumentationModel) -> U addSources(files.toList()) } - val result = environment.processFiles { context, file -> - context.createDocumentationModel(file) - }.fold(DocumentationModel()) {(aggregate, item) -> aggregate.merge(item) } + val result = environment.processFiles { context, module, file -> + context.createDocumentationModel(module, file) + }.reduce {(aggregate, item) -> aggregate.merge(item) } verifier(result) Disposer.dispose(environment) } |