diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-16 00:11:04 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-16 00:11:04 +0400 |
commit | d25b896ec692aeb35a5465b624508851c96dfd1d (patch) | |
tree | c68abcd1c00c06afd6f364275169ef8356f1d02f /src/Model/DocumentationModule.kt | |
parent | 62177099390dccf4fba3facb668415b8633e6e24 (diff) | |
download | dokka-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.kt | 7 |
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 |