Fix completion for private_to_this.
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
class Some() {
|
||||
public val testPublic = 12
|
||||
protected val testProtected = 12
|
||||
private val testPrivate = 12
|
||||
val testPackage = 12
|
||||
}
|
||||
|
||||
fun test() {
|
||||
Some().<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: testPublic, testPackage
|
||||
// ABSENT: testPrivate, testProtected
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class Some() {
|
||||
public val testPublic : Int = 12
|
||||
protected val testProtected : Int = 12
|
||||
private val testPrivate = 12
|
||||
val testPackage = 12
|
||||
}
|
||||
|
||||
fun test() {
|
||||
Some().<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: testPublic, testProtected, testPrivate, testPackage
|
||||
@@ -0,0 +1,16 @@
|
||||
class Some() {
|
||||
public val testPublic = 12
|
||||
protected val testProtected = 12
|
||||
private val testPrivate = 12
|
||||
val testPackage = 12
|
||||
}
|
||||
|
||||
class SomeSubclass : Some() {
|
||||
fun test() {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: testPublic, testProtected, testPackage
|
||||
// ABSENT: testPrivate
|
||||
@@ -0,0 +1,15 @@
|
||||
class Some() {
|
||||
public val testPublic = 12
|
||||
protected val testProtected = 12
|
||||
private val testPrivate = 12
|
||||
val testPackage = 12
|
||||
}
|
||||
|
||||
class SomeSubclass : Some() {
|
||||
fun test() {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: testPublic, testProtected, testPackage, testPrivate
|
||||
@@ -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
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
class A<in I> {
|
||||
private val bar: I
|
||||
|
||||
private fun foo(): I = null!!
|
||||
|
||||
{
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// EXIST: bar, foo
|
||||
+12
@@ -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
|
||||
+15
@@ -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
|
||||
+13
@@ -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
|
||||
+13
@@ -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
|
||||
+15
@@ -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
|
||||
Reference in New Issue
Block a user