Properly calculate call site file in JVM IR inliner

This commit is contained in:
Mikhael Bogdanov
2019-05-20 09:35:05 +02:00
parent 6ef3e9ea42
commit 007af75e1e
7 changed files with 1 additions and 8 deletions
@@ -58,9 +58,8 @@ class IrSourceCompilerForInline(
override val callElementText: String
get() = callElement.toString()
//TODO
override val callsiteFile: PsiFile?
get() = callElement.descriptor.psiElement?.containingFile
get() = codegen.context.psiSourceManager.getKtFile(codegen.irFunction.fileParent)
override val contextKind: OwnerKind
get() = OwnerKind.getMemberOwnerKind(callElement.descriptor.containingDeclaration)
@@ -1,5 +1,4 @@
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
import kotlin.properties.Delegates
@@ -1,6 +1,5 @@
// !LANGUAGE: +NewInference
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
class Foo<C : Any> {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_REFLECT
@@ -1,6 +1,5 @@
// FILE: 1.kt
// WITH_REFLECT
// IGNORE_BACKEND: JVM_IR
package foo
@@ -1,7 +1,6 @@
// FILE: 1.kt
// FULL_JDK
// WITH_REFLECT
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
package test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// FILE: 1.kt
// WITH_REFLECT