[Analysis API] Support non-JVM platforms in code fragments

The 'evalJs' test is not available, as there is no proper support for
klib loading in non-standalone Analysis API yet.

^KT-64197 Fixed
This commit is contained in:
Yan Zhulanow
2023-12-22 15:49:10 +09:00
committed by Space Team
parent 75abae23d8
commit 5179462632
20 changed files with 212 additions and 23 deletions
@@ -0,0 +1,6 @@
// WITH_STDLIB
// TARGET_PLATFORM: JVM
fun foo(node: kotlinx.dom.Node) {
<caret>check(node.isElement)
}
@@ -0,0 +1,4 @@
Diagnostics from elements:
for PSI element of type KtNameReferenceExpression at (1,1-5)
UNRESOLVED_REFERENCE text ranges: [(0,4)]
PSI: KtNameReferenceExpression at (1,1-5)
@@ -0,0 +1,6 @@
// WITH_STDLIB
// TARGET_PLATFORM: JVM, JS
fun foo(node: kotlinx.dom.Node) {
<caret>check(node.isElement)
}
@@ -0,0 +1,4 @@
Diagnostics from elements:
for PSI element of type KtNameReferenceExpression at (1,1-5)
UNRESOLVED_REFERENCE text ranges: [(0,4)]
PSI: KtNameReferenceExpression at (1,1-5)