Code completion for string templates after simple name + dot

This commit is contained in:
Valentin Kipyatkov
2015-11-09 18:45:41 +03:00
parent 8389b8e8da
commit 8946e5f353
18 changed files with 248 additions and 62 deletions
@@ -0,0 +1,6 @@
fun foo(param: String) {
val s = "$<caret>bla-bla-bla"
}
// EXIST: foo
// EXIST: param
@@ -0,0 +1,6 @@
fun foo(param: String) {
val s = "${<caret>}"
}
// EXIST: foo
// EXIST: param
@@ -0,0 +1,7 @@
fun foo(param: String) {
val s = "$param.<caret>bla-bla-bla"
}
// EXIST: { itemText: "length", attributes: "" }
// EXIST: { itemText: "hashCode", attributes: "" }
// EXIST: { itemText: "capitalize", attributes: "bold" }
@@ -0,0 +1,7 @@
fun foo(param: String) {
val s = "$param.l<caret>bla-bla-bla"
}
// EXIST: { itemText: "length", attributes: "" }
// ABSENT: hashCode
// EXIST: { itemText: "lastIndex", attributes: "" }