From 8ee246fe89011506d8456c48c5dfc04d92ef88cf Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Wed, 8 Apr 2020 17:08:38 +0200 Subject: Fix test --- core/src/main/kotlin/model/Documentable.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index 2155b00d..f3eb6b9a 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -7,7 +7,6 @@ import org.jetbrains.dokka.model.properties.PropertyContainer import org.jetbrains.dokka.model.properties.WithExtraProperties import org.jetbrains.dokka.pages.PlatformData import org.jetbrains.kotlin.descriptors.DeclarationDescriptor -import org.jetbrains.kotlin.descriptors.PackageFragmentDescriptor import org.jetbrains.kotlin.load.kotlin.toSourceElement abstract class Documentable { @@ -423,10 +422,10 @@ interface DocumentableSource { val path: String } -class DescriptorDocumentableSource(source: DeclarationDescriptor) : DocumentableSource { - override val path = source.toSourceElement.containingFile.toString() +class DescriptorDocumentableSource(val descriptor: DeclarationDescriptor) : DocumentableSource { + override val path = descriptor.toSourceElement.containingFile.toString() } -class PsiDocumentableSource(source: PsiNamedElement) : DocumentableSource { - override val path = source.containingFile.virtualFile.path +class PsiDocumentableSource(val psi: PsiNamedElement) : DocumentableSource { + override val path = psi.containingFile.virtualFile.path } -- cgit