Optimization to reuse BindingContext in completion

This commit is contained in:
Valentin Kipyatkov
2016-10-31 22:49:37 +03:00
parent 1174c7bdd9
commit 09dbb07fb8
30 changed files with 548 additions and 22 deletions
@@ -0,0 +1,17 @@
fun foo(p1: Any, p2: Any) {
if (p1 !is String) return
val v1 = "a"
val v2 = 123
println("a")
bar(x<before><change>)
if (p2 !is String) return
}
fun bar(s: String){}
// BACKSPACES: 1
// COMPLETION_TYPE: SMART
// EXIST: v1
// ABSENT: v2
// EXIST: p1
// ABSENT: p2