org.jetbrains.dokka.analysis.Documentable.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dokka-analysis Show documentation
Show all versions of dokka-analysis Show documentation
Dokka is an API documentation engine for Kotlin and Java, performing the same function as Javadoc for Java
package org.jetbrains.dokka.analysis
import com.intellij.psi.PsiNamedElement
import org.jetbrains.dokka.model.DocumentableSource
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrains.kotlin.load.kotlin.toSourceElement
class DescriptorDocumentableSource(val descriptor: DeclarationDescriptor) : DocumentableSource {
override val path = descriptor.toSourceElement.containingFile.toString()
}
class PsiDocumentableSource(val psi: PsiNamedElement) : DocumentableSource {
override val path = psi.containingFile.virtualFile.path
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy