aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Analysis/JavaResolveExtension.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-02-10 15:02:26 +0100
committerKamil Doległo <kamilok1965@interia.pl>2020-02-10 15:02:26 +0100
commit0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb (patch)
tree32b09319400677750af154034e09d82d4706a396 /core/src/main/kotlin/Analysis/JavaResolveExtension.kt
parent23fbfa0e8e793314cea8d96ac1584d72ec70bb60 (diff)
parent465ea3d23be40d0d21df7f7cab51ec2d42e3237f (diff)
downloaddokka-0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb.tar.gz
dokka-0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb.tar.bz2
dokka-0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb.zip
Merge dev-0.10.1 into master
Diffstat (limited to 'core/src/main/kotlin/Analysis/JavaResolveExtension.kt')
-rw-r--r--core/src/main/kotlin/Analysis/JavaResolveExtension.kt7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/src/main/kotlin/Analysis/JavaResolveExtension.kt b/core/src/main/kotlin/Analysis/JavaResolveExtension.kt
index 4dc6b366..4a4c78e5 100644
--- a/core/src/main/kotlin/Analysis/JavaResolveExtension.kt
+++ b/core/src/main/kotlin/Analysis/JavaResolveExtension.kt
@@ -19,7 +19,6 @@
package org.jetbrains.dokka
import com.intellij.psi.*
-import org.jetbrains.kotlin.asJava.classes.KtLightClass
import org.jetbrains.kotlin.asJava.unwrapped
import org.jetbrains.kotlin.caches.resolve.KotlinCacheService
import org.jetbrains.kotlin.descriptors.*
@@ -29,11 +28,9 @@ import org.jetbrains.kotlin.load.java.sources.JavaSourceElement
import org.jetbrains.kotlin.load.java.structure.*
import org.jetbrains.kotlin.load.java.structure.impl.*
import org.jetbrains.kotlin.name.Name
-import org.jetbrains.kotlin.psi.KtClassOrObject
+import org.jetbrains.kotlin.platform.jvm.JvmPlatforms
import org.jetbrains.kotlin.psi.KtDeclaration
-import org.jetbrains.kotlin.psi.psiUtil.parameterIndex
import org.jetbrains.kotlin.resolve.jvm.JavaDescriptorResolver
-import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatform
import org.jetbrains.kotlin.resolve.scopes.DescriptorKindFilter
import org.jetbrains.kotlin.resolve.scopes.MemberScope
@@ -128,4 +125,4 @@ private fun <T : DeclarationDescriptorWithSource> Collection<T>.findByJavaElemen
}
fun PsiElement.javaResolutionFacade() =
- KotlinCacheService.getInstance(project).getResolutionFacadeByFile(this.originalElement.containingFile, JvmPlatform)!!
+ KotlinCacheService.getInstance(project).getResolutionFacadeByFile(this.originalElement.containingFile, JvmPlatforms.defaultJvmPlatform)!!