Initial implementation of KT-8209 Support static member completion without writing the class name
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun foo() {
|
||||
SOU<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST_JAVA_ONLY: { allLookupStrings: "SOUTH, getSOUTH", itemText: "GridBagConstraints.SOUTH", tailText: " (java.awt)", typeText: "Int", attributes: "" }
|
||||
// EXIST_JAVA_ONLY: { allLookupStrings: "SOUTHWEST, getSOUTHWEST", itemText: "GridBagConstraints.SOUTHWEST", tailText: " (java.awt)", typeText: "Int", attributes: "" }
|
||||
// ABSENT: serialVersionUID
|
||||
@@ -0,0 +1,8 @@
|
||||
fun foo() {
|
||||
invoke<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: "(Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
|
||||
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeAndWait", itemText: "SwingUtilities.invokeAndWait", tailText: "(Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
|
||||
// ABSENT: { itemText: "SwingUtilities.convertScreenLocationToParent" }
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
object KotlinObject {
|
||||
fun funFromObject() { }
|
||||
private fun privateFun(){}
|
||||
}
|
||||
|
||||
class KotlinClass {
|
||||
companion object SomeName {
|
||||
fun funFromCompanionObject() { }
|
||||
private fun privateFun(){}
|
||||
}
|
||||
}
|
||||
|
||||
class AnotherKotlinClass {
|
||||
private companion object {
|
||||
fun funFromPrivateCompanionObject() { }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package first
|
||||
|
||||
fun testFun() {
|
||||
funFromO<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: { allLookupStrings: "funFromObject", itemText: "KotlinObject.funFromObject", tailText: "() (test)", typeText: "Unit", attributes: "" }
|
||||
// EXIST: { allLookupStrings: "funFromCompanionObject", itemText: "KotlinClass.funFromCompanionObject", tailText: "() (test)", typeText: "Unit", attributes: "" }
|
||||
// ABSENT: privateFun
|
||||
// ABSENT: funFromPrivateCompanionObject
|
||||
Reference in New Issue
Block a user