Adapting code completion to no annotations without "@"

This commit is contained in:
Valentin Kipyatkov
2015-10-10 17:58:41 +03:00
parent ddcab047ce
commit f90ff31507
17 changed files with 21 additions and 72 deletions
@@ -1,3 +1,3 @@
<caret> annotation class Annotated
@<caret> annotation class Annotated
// EXIST: Target
@@ -1,4 +1,4 @@
@Dep<caret>
@Deprecate<caret>
fun foo() { }
// INVOCATION_COUNT: 2
@@ -1,7 +1,7 @@
annotation class Hello
val v = 1
<caret>
@<caret>
fun some() {}
// INVOCATION_COUNT: 0
@@ -1,7 +1,7 @@
annotation class Hello
val v = 1
fun foo(<caret>) { }
fun foo(@<caret>) { }
// INVOCATION_COUNT: 1
// EXIST: Hello
@@ -1,6 +1,6 @@
annotation class SHello
fun foo(S<caret>) { }
fun foo(@S<caret>) { }
// INVOCATION_COUNT: 1
// EXIST: SHello
@@ -1,7 +1,7 @@
annotation class Hello
val v = 1
fun foo(p: String, <caret>) { }
fun foo(p: String, @<caret>) { }
// INVOCATION_COUNT: 1
// EXIST: Hello
@@ -1,7 +1,7 @@
annotation class Hello
val v = 1
fun foo(@Volatile <caret>) { }
fun foo(@Volatile @<caret>) { }
// INVOCATION_COUNT: 1
// EXIST: Hello
@@ -1,7 +1,7 @@
annotation class Hello
val v = 1
fun foo(<caret>
fun foo(@<caret>
// INVOCATION_COUNT: 1
// EXIST: Hello
@@ -1,4 +1,4 @@
fun foo(kotlin.<caret>) { }
fun foo(@kotlin.<caret>) { }
// INVOCATION_COUNT: 1
// EXIST: Suppress
@@ -1,7 +1,7 @@
annotation class Hello
val v = 1
<caret>
@<caret>
// INVOCATION_COUNT: 0
// EXIST: Hello
@@ -1,7 +1,7 @@
annotation class Hello
val v = 1
<caret>
@<caret>
class C
// INVOCATION_COUNT: 0
@@ -1,6 +1,6 @@
import java.lang.annotation.*
Retention(<caret>
@Retention(<caret>
// INVOCATION_COUNT: 0
// EXIST_JAVA_ONLY: RetentionPolicy
@@ -1,6 +1,6 @@
import java.lang.annotation.*
Retention(RetentionPolicy.<caret>
@Retention(RetentionPolicy.<caret>
// INVOCATION_COUNT: 0
// EXIST_JAVA_ONLY: SOURCE