Editor for evaluate expression: implement highlighting and completion using ResolveElementCache

This commit is contained in:
Natalia Ukhorskaya
2014-04-21 11:06:19 +04:00
parent 2eff4e2300
commit 931b628988
28 changed files with 349 additions and 22 deletions
@@ -0,0 +1,4 @@
fun foo() {
val a = 1
<caret>a
}
@@ -0,0 +1 @@
a + <error>b</error>
@@ -0,0 +1,4 @@
fun foo(i: Int, s: String) {
val a = 1
<caret>a
}
@@ -0,0 +1 @@
foo(a, <error>1</error>)
@@ -0,0 +1,4 @@
fun foo() {
val a = 1
<caret>val b = 2
}
@@ -0,0 +1 @@
a + <error>c</error>
@@ -0,0 +1,4 @@
fun foo() {
val a = 1
<caret>a
}
@@ -0,0 +1 @@
<error>b</error>
@@ -0,0 +1,6 @@
fun foo() {
val a: Int? = 1
if (a != null) {
<caret> a
}
}
@@ -0,0 +1 @@
a + 1