Completion fix for reserved 'async' syntax

This commit is contained in:
Stanislav Erokhin
2015-12-19 20:14:03 +03:00
committed by Andrey Breslav
parent afc1e24571
commit 318f0c89b2
10 changed files with 110 additions and 2 deletions
@@ -0,0 +1,7 @@
fun async(a: () -> Unit) {}
fun test() {
asy<caret>
}
// ELEMENT: async
@@ -0,0 +1,7 @@
fun async(a: () -> Unit) {}
fun test() {
async() { <caret> }
}
// ELEMENT: async
@@ -0,0 +1,7 @@
fun async (p: Int, a: () -> Unit) {}
fun test() {
asy<caret>
}
// ELEMENT: async
@@ -0,0 +1,7 @@
fun async (p: Int, a: () -> Unit) {}
fun test() {
async(<caret>)
}
// ELEMENT: async
@@ -0,0 +1,10 @@
fun asyFoo(a: () -> Unit) {}
fun async(a: () -> Unit) {}
fun test() {
asy<caret>Foo { }
}
// ELEMENT: async
// CHAR: '\t'
@@ -0,0 +1,10 @@
fun asyFoo(a: () -> Unit) {}
fun async(a: () -> Unit) {}
fun test() {
async() { }
}
// ELEMENT: async
// CHAR: '\t'
@@ -0,0 +1,10 @@
fun asyFoo(p: Int, a: () -> Unit) {}
fun async(q: Int, a: () -> Unit) {}
fun test() {
asy<caret>Foo(5) { }
}
// ELEMENT: async
// CHAR: '\t'
@@ -0,0 +1,10 @@
fun asyFoo(p: Int, a: () -> Unit) {}
fun async(q: Int, a: () -> Unit) {}
fun test() {
async(<caret>5) { }
}
// ELEMENT: async
// CHAR: '\t'