aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 19:33:54 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 19:33:54 +0400
commit94b3ed6fae39c121e67ee80596c10de93a206695 (patch)
treefe1081e9faf555114bd32e2383240264aa0df765
parent433b8965b040c0d4ccb690c08489a9a4a89c4f8b (diff)
downloaddokka-94b3ed6fae39c121e67ee80596c10de93a206695.tar.gz
dokka-94b3ed6fae39c121e67ee80596c10de93a206695.tar.bz2
dokka-94b3ed6fae39c121e67ee80596c10de93a206695.zip
Custom name for a module.
-rw-r--r--src/Model/DocumentationModule.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Model/DocumentationModule.kt b/src/Model/DocumentationModule.kt
index 70589dba..832eb9e3 100644
--- a/src/Model/DocumentationModule.kt
+++ b/src/Model/DocumentationModule.kt
@@ -4,17 +4,17 @@ import org.jetbrains.jet.lang.resolve.BindingContext
import org.jetbrains.jet.lang.descriptors.*
import org.jetbrains.jet.lang.resolve.name.FqName
-public class DocumentationModule(val module: ModuleDescriptor) : DocumentationNode(module, "module", DocumentationContent.Empty, DocumentationNode.Kind.Module) {
+public class DocumentationModule(name: String, val module: ModuleDescriptor) : DocumentationNode(module, name, DocumentationContent.Empty, DocumentationNode.Kind.Module) {
fun merge(other: DocumentationModule): DocumentationModule {
- val model = DocumentationModule(module)
+ val model = DocumentationModule(name, module)
model.addAllReferencesFrom(other)
model.addAllReferencesFrom(this)
return model
}
}
-fun BindingContext.createDocumentationModule(module: ModuleDescriptor, packages: Set<FqName>): DocumentationModule {
- val documentationModule = DocumentationModule(module)
+fun BindingContext.createDocumentationModule(name: String, module: ModuleDescriptor, packages: Set<FqName>): DocumentationModule {
+ val documentationModule = DocumentationModule(name, module)
val visitor = DocumentationNodeBuilder(this)
for (packageName in packages) {
val pkg = module.getPackage(packageName)