aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/Documentable.kt
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-04-08 17:08:38 +0200
committerBarkingBad <32793002+BarkingBad@users.noreply.github.com>2020-04-22 10:37:59 +0200
commit8ee246fe89011506d8456c48c5dfc04d92ef88cf (patch)
tree36370fe7a015bbdcecf1d2e02729f900967a8245 /core/src/main/kotlin/model/Documentable.kt
parenta5557f43c004d34026807d2d25b39fe1144bae94 (diff)
downloaddokka-8ee246fe89011506d8456c48c5dfc04d92ef88cf.tar.gz
dokka-8ee246fe89011506d8456c48c5dfc04d92ef88cf.tar.bz2
dokka-8ee246fe89011506d8456c48c5dfc04d92ef88cf.zip
Fix test
Diffstat (limited to 'core/src/main/kotlin/model/Documentable.kt')
-rw-r--r--core/src/main/kotlin/model/Documentable.kt9
1 files changed, 4 insertions, 5 deletions
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
}