[VISUALIZER] Change rendering of equals call

This commit is contained in:
Ivan Kylchik
2021-02-20 16:34:43 +03:00
committed by TeamCityServer
parent dd8a7010f0
commit 59416f447e
11 changed files with 22 additions and 18 deletions
@@ -6,7 +6,7 @@ fun test1(s: String?) contract [returnsNotNull()] {
// [ERROR: not resolved]
// │ [ERROR: not resolved]
// │ │ test1.s: String?
// │ │ │ fun (Any).equals(Any?): Boolean
// │ │ │ EQ operator call
// │ │ │ │ Nothing?
// │ │ │ │ │
returns() implies (s != null)
@@ -21,7 +21,7 @@ enum class SomeEnum(val x: Some) {
SECOND(O2) {
// Boolean
// │ SomeEnum.SECOND.check.y: Some
// │ │ fun (Any).equals(Any?): Boolean
// │ │ EQ operator call
// │ │ │ object O2: Some
// │ │ │ │
override fun check(y: Some): Boolean = y == O2
@@ -16,7 +16,7 @@ annotation class Ann
fun foo(arg: Int): Int {
// constructor Ann()
// │ foo.arg: Int
// │ │ fun (Any).equals(Any?): Boolean
// │ │ EQ operator call
// Unit │ │ │ Int
// │ │ │ │ │
if (@Ann arg == 0) {
@@ -28,7 +28,7 @@ fun foo(arg: Int): Int {
// constructor Ann()
// │ Unit
// │ │ foo.arg: Int
// │ │ │ fun (Any).equals(Any?): Boolean
// │ │ │ EQ operator call
// │ │ │ │ Int
// │ │ │ │ │
@Ann if (arg == 1) {
+1 -1
View File
@@ -23,7 +23,7 @@ fun fooLabeled() {
label@ for (i in 1..10) {
// Unit
// │ val fooLabeled.i: Int
// │ │ fun (Any).equals(Any?): Boolean
// │ │ EQ operator call
// │ │ │ Int
// │ │ │ │
if (i == 5) continue@label
@@ -41,7 +41,7 @@ fun foo(): Int {
// Unit
// │ foo.<anonymous>.it: Tuple
// │ │ val (Tuple).x: Int
// │ │ │ fun (Any).equals(Any?): Boolean
// │ │ │ EQ operator call
// │ │ │ │ Int Int
// │ │ │ │ │ │
if (it.x == 0) return@foo 0
@@ -59,7 +59,7 @@ fun bar(): Int {
// Unit
// │ bar.<anonymous>.it: Tuple
// │ │ val (Tuple).x: Int
// │ │ │ fun (Any).equals(Any?): Boolean
// │ │ │ EQ operator call
// │ │ │ │ Int Int
// │ │ │ │ │ │
if (it.x == 0) return@bar 0
@@ -23,7 +23,7 @@ fun test() {
// Unit
// │ fun (Boolean).not(): Boolean
// │ │ var test.x: Int
// │ │ │ fun (Any).equals(Any?): Boolean
// │ │ │ EQ operator call
// │ │ │ │ Int
// │ │ │ │ │
if (!(x == 0)) {
@@ -18,7 +18,7 @@ fun foo(limit: Int) {
// │ │
println(k)
// var foo.k: Int
// │ fun (Any).equals(Any?): Boolean
// │ EQ operator call
// │ │ Int
// │ │ │
while (k == 13) {