aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationModule.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-16 00:11:04 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-16 00:11:04 +0400
commitd25b896ec692aeb35a5465b624508851c96dfd1d (patch)
treec68abcd1c00c06afd6f364275169ef8356f1d02f /src/Model/DocumentationModule.kt
parent62177099390dccf4fba3facb668415b8633e6e24 (diff)
downloaddokka-d25b896ec692aeb35a5465b624508851c96dfd1d.tar.gz
dokka-d25b896ec692aeb35a5465b624508851c96dfd1d.tar.bz2
dokka-d25b896ec692aeb35a5465b624508851c96dfd1d.zip
Add DocumentationOptions to support non-public API docs (used in tests)
Diffstat (limited to 'src/Model/DocumentationModule.kt')
-rw-r--r--src/Model/DocumentationModule.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Model/DocumentationModule.kt b/src/Model/DocumentationModule.kt
index 832eb9e3..78ebda04 100644
--- a/src/Model/DocumentationModule.kt
+++ b/src/Model/DocumentationModule.kt
@@ -13,12 +13,15 @@ public class DocumentationModule(name: String, val module: ModuleDescriptor) : D
}
}
-fun BindingContext.createDocumentationModule(name: String, module: ModuleDescriptor, packages: Set<FqName>): DocumentationModule {
+fun BindingContext.createDocumentationModule(name: String,
+ module: ModuleDescriptor,
+ packages: Set<FqName>,
+ options : DocumentationOptions = DocumentationOptions()): DocumentationModule {
val documentationModule = DocumentationModule(name, module)
val visitor = DocumentationNodeBuilder(this)
for (packageName in packages) {
val pkg = module.getPackage(packageName)
- pkg!!.accept(DocumentationBuildingVisitor(this, visitor), documentationModule)
+ pkg!!.accept(DocumentationBuildingVisitor(this, options, visitor), documentationModule)
}
// TODO: Uncomment for resolve verification