Fix completion for private_to_this.

This commit is contained in:
Stanislav Erokhin
2014-10-31 14:07:32 +03:00
parent f9afdf7540
commit d334f3b31c
18 changed files with 320 additions and 61 deletions
@@ -0,0 +1,13 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
<caret>
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,12 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
{
<caret>
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,12 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
{
this.<caret>
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,15 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
with(A()) {
<caret>
}
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,13 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test(a: A<Int>) {
a.<caret>
}
}
// INVOCATION_COUNT: 1
// ABSENT: bar, foo
@@ -0,0 +1,13 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test(a: A<Int>) {
a.<caret>
}
}
// INVOCATION_COUNT: 2
// EXIST: bar, foo
@@ -0,0 +1,15 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
with(A()) {
this@A.<caret>
}
}
}
// INVOCATION_COUNT: 1
// EXIST: bar, foo
@@ -0,0 +1,15 @@
class A<in I> {
private val bar: I
private fun foo(): I = null!!
fun test() {
with(A()) {
this.<caret>
}
}
}
// INVOCATION_COUNT: 1
// ABSENT: bar, foo