Better completion for static members: special behavior in case of imports from same class exist
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import kotlin.text.Regex.Companion.fromLiteral
|
||||
|
||||
fun foo() {
|
||||
escape<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// ELEMENT_TEXT: "Regex.escapeReplacement"
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import kotlin.text.Regex.Companion.escapeReplacement
|
||||
import kotlin.text.Regex.Companion.fromLiteral
|
||||
|
||||
fun foo() {
|
||||
escapeReplacement(<caret>)
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// ELEMENT_TEXT: "Regex.escapeReplacement"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import javax.swing.SwingUtilities.invokeLater
|
||||
|
||||
fun foo() {
|
||||
invoke<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// ELEMENT_TEXT: "SwingUtilities.invokeAndWait"
|
||||
// TAIL_TEXT: " {...} ((() -> Unit)!) (javax.swing)"
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import javax.swing.SwingUtilities.invokeAndWait
|
||||
import javax.swing.SwingUtilities.invokeLater
|
||||
|
||||
fun foo() {
|
||||
invokeAndWait { <caret> }
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 1
|
||||
// ELEMENT_TEXT: "SwingUtilities.invokeAndWait"
|
||||
// TAIL_TEXT: " {...} ((() -> Unit)!) (javax.swing)"
|
||||
Reference in New Issue
Block a user