Code completion: changed dummy identifier for basic completion to ignore context ahead + no invisible symbols on first completion even if nothing matches

This commit is contained in:
Valentin Kipyatkov
2014-08-08 15:54:49 +04:00
parent 4f4b84dbd2
commit 3e2ad55c9e
9 changed files with 31 additions and 8 deletions
@@ -5,5 +5,5 @@ fun test(p: Int) = foo(12, <caret>, third = "")
// EXIST: p
// ABSENT: first
// ABSENT: third
// EXIST: third
// EXIST: second
@@ -0,0 +1,9 @@
fun foo(first: Int, second: Int, third: String) {
}
fun test(p: Int) = foo(<caret>second = 3)
// EXIST: p
// EXIST: first
// EXIST: second
// EXIST: third
@@ -7,3 +7,4 @@ fun test(p: Int) = foo(12, third = "", <caret>)
// ABSENT: first
// ABSENT: third
// EXIST: second
// NUMBER: 1
@@ -7,6 +7,6 @@ fun test() = small(param<caret>First = 12)
// EXIST: paramFirst
// EXIST: paramSecond
// ABSENT: paramTest
// EXIST: paramTest
// NUMBER: 2
// NUMBER: 3
@@ -1,5 +1,5 @@
val x = LinesStream<caret>
// INVOCATION_COUNT: 1
// INVOCATION_COUNT: 2
// EXIST: { lookupString:"LinesStream", tailText:" (kotlin.io)" }
// NUMBER: 1