diff options
Diffstat (limited to 'src/Model/DocumentationModule.kt')
-rw-r--r-- | src/Model/DocumentationModule.kt | 8 |
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) |