Debugger: do not evaluate calls on mouse cover when 'Value auto tooltip' switched on

This commit is contained in:
Natalia Ukhorskaya
2015-01-14 14:07:37 +03:00
parent f5aefc96fb
commit d2cf83902b
23 changed files with 433 additions and 158 deletions
@@ -0,0 +1,5 @@
fun foo() {
1 <caret>+ 1
}
// EXPECTED: null
@@ -0,0 +1,7 @@
fun foo() {
<caret>bar()
}
fun bar() = 1
// EXPECTED: null
@@ -0,0 +1,4 @@
val a = 1
val b = <caret>a
// EXPECTED: a
@@ -0,0 +1,7 @@
fun foo() {
1.<caret>foo()
}
fun Int.foo() = 1
// EXPECTED: null
@@ -0,0 +1,8 @@
fun foo() {
val a = 1
bar(<caret>a)
}
fun bar(i: Int) = 1
// EXPECTED: a
@@ -0,0 +1,7 @@
fun foo() {
<caret>bar { }
}
fun bar(f: () -> Unit) = 1
// EXPECTED: null
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass<caret>[1]
}
class MyClass {
fun get(i: Int): Int = 1
}
// EXPECTED: null
@@ -0,0 +1,7 @@
fun foo() {
1 <caret>foo 1
}
fun Int.foo(i: Int) = 1
// EXPECTED: null
@@ -0,0 +1,8 @@
fun foo() {
val a = 1
<caret>a foo 1
}
fun Int.foo(i: Int) = 1
// EXPECTED: a
@@ -0,0 +1,5 @@
fun foo() {
1 <caret>is Int
}
// EXPECTED: null
@@ -0,0 +1,6 @@
val a = 1
fun foo() {
<caret>a
}
// EXPECTED: a
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass.<caret>bar
}
class MyClass {
val bar = 1
}
// EXPECTED: klass.bar
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
<caret>klass.bar()
}
class MyClass {
fun bar() = 1
}
// EXPECTED: klass
@@ -0,0 +1,10 @@
fun foo() {
val klass = MyClass()
klass.<caret>bar()
}
class MyClass {
fun bar() = 1
}
// EXPECTED: null
@@ -0,0 +1,11 @@
class Derived: Base() {
fun test() {
<caret>super.test()
}
}
open class Base {
fun test() {}
}
// EXPECTED: null
@@ -0,0 +1,7 @@
class MyClass {
fun test() {
<caret>this.test()
}
}
// EXPECTED: null
@@ -0,0 +1,7 @@
class MyClass {
fun Int.test() {
<caret>this@MyClass
}
}
// EXPECTED: this@MyClass
@@ -0,0 +1,5 @@
fun foo() {
<caret>+1
}
// EXPECTED: null