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