From 94b3ed6fae39c121e67ee80596c10de93a206695 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 14 Jul 2014 19:33:54 +0400 Subject: Custom name for a module. --- src/Model/DocumentationModule.kt | 8 ++++---- 1 file 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): DocumentationModule { - val documentationModule = DocumentationModule(module) +fun BindingContext.createDocumentationModule(name: String, module: ModuleDescriptor, packages: Set): DocumentationModule { + val documentationModule = DocumentationModule(name, module) val visitor = DocumentationNodeBuilder(this) for (packageName in packages) { val pkg = module.getPackage(packageName) -- cgit