[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:
committed by
Space Team
parent
66de893963
commit
ba3a3915c7
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import c.b
|
||||
|
||||
val a = 5 // some KtElement to analyze in the air against
|
||||
val a<caret_onAirContext> = 5
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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
-1
@@ -1,3 +1,3 @@
|
||||
// RENDER_DEFAULT_IMPORTING_SCOPE
|
||||
|
||||
val a = 5 // some KtElement to analyze in the air against
|
||||
val a<caret_onAirContext> = 5
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user