[Analysis API] tests: use tagged caret to find declaration to analyze in the air against

We cannot use a KtFile as analysis context.

^KT-55527
This commit is contained in:
Ilya Kirillov
2023-05-02 17:51:08 +02:00
committed by Space Team
parent 66de893963
commit ba3a3915c7
9 changed files with 28 additions and 9 deletions
@@ -1,4 +1,4 @@
import c.b
val a = 5 // some KtElement to analyze in the air against
val a<caret_onAirContext> = 5
@@ -1,7 +1,7 @@
// FILE: main.kt
import other.A as AAA
val a = 5 // some KtElement to analyze in the air against
val a<caret_onAirContext> = 5
// FILE: other/other.kt
package other
@@ -1,3 +1,3 @@
// RENDER_DEFAULT_IMPORTING_SCOPE
val a = 5 // some KtElement to analyze in the air against
val a<caret_onAirContext> = 5
@@ -1,7 +1,7 @@
// FILE: main.kt
import other.A
val a = 5 // some KtElement to analyze in the air against
val a<caret_onAirContext> = 5
// FILE: other/other.kt
package other
@@ -1,7 +1,7 @@
// FILE: main.kt
import other.*
val a = 5 // some KtElement to analyze in the air against
val a<caret_onAirContext> = 5
// FILE: other/other.kt
package other