Switch 'AbstractVisualizer' to new scheme with configuration kind
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(a: Int, b: Int) = if (a > b) a else b
|
||||
|
||||
fun bar(a: Double, b: Double): Double {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
infix fun distance(x: Int, y: Int) = x + y
|
||||
|
||||
fun test(): Int = 3 distance 4
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
data class Tuple(val x: Int, val y: Int)
|
||||
|
||||
inline fun use(f: (Tuple) -> Int) = f(Tuple(1, 2))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun simple() {
|
||||
var x = 10
|
||||
x += 20
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun some() {
|
||||
try {
|
||||
throw KotlinNullPointerException()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
var x = 0
|
||||
val x1 = x++
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(limit: Int) {
|
||||
var k = 0
|
||||
some@ while (k < limit) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// FIR_IGNORE
|
||||
// WITH_RUNTIME
|
||||
// foo.a: Int
|
||||
// │ fun (Int).compareTo(Int): Int
|
||||
// │ │ foo.b: Int
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// FIR_IGNORE
|
||||
// WITH_RUNTIME
|
||||
// Int
|
||||
// │ distance.x: Int
|
||||
// │ │ fun (Int).plus(Int): Int
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// FIR_IGNORE
|
||||
// WITH_RUNTIME
|
||||
data class Tuple(val x: Int, val y: Int)
|
||||
|
||||
// Int
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// FIR_IGNORE
|
||||
// WITH_RUNTIME
|
||||
fun simple() {
|
||||
// Int Int
|
||||
// │ │
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun some() {
|
||||
try {
|
||||
// constructor KotlinNullPointerException()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// FIR_IGNORE
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
// Int Int
|
||||
// │ │
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// FIR_IGNORE
|
||||
// WITH_RUNTIME
|
||||
fun foo(limit: Int) {
|
||||
// Int Int
|
||||
// │ │
|
||||
|
||||
@@ -37,10 +37,6 @@ abstract class AbstractVisualizer : KotlinMultiFileTestWithJava<KotlinBaseTest.T
|
||||
return true
|
||||
}
|
||||
|
||||
override fun getConfigurationKind(): ConfigurationKind {
|
||||
return ConfigurationKind.ALL
|
||||
}
|
||||
|
||||
fun doFirBuilderDataTest(filePath: String) {
|
||||
replacement = "fir${File.separator}psi2fir" to "visualizer"
|
||||
doTest(filePath)
|
||||
|
||||
Reference in New Issue
Block a user