Intention to import members with '*'
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.ImportAllMembersIntention
|
||||
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.invokeLater
|
||||
|
||||
fun foo() {
|
||||
<caret>SwingUtilities.invokeLater { }
|
||||
|
||||
val bottom = SwingUtilities.BOTTOM
|
||||
|
||||
SwingUtilities.invokeAndWait {
|
||||
SwingUtilities.invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = javax.swing.SwingUtilities.HORIZONTAL
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
fun foo() {
|
||||
<caret>invokeLater { }
|
||||
|
||||
val bottom = BOTTOM
|
||||
|
||||
invokeAndWait {
|
||||
invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = HORIZONTAL
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
fun foo() {
|
||||
<caret>SwingUtilities.invokeLater { }
|
||||
|
||||
val bottom = SwingUtilities.BOTTOM
|
||||
|
||||
SwingUtilities.invokeAndWait {
|
||||
SwingUtilities.invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = javax.swing.SwingUtilities.HORIZONTAL
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
fun foo() {
|
||||
<caret>invokeLater { }
|
||||
|
||||
val bottom = BOTTOM
|
||||
|
||||
invokeAndWait {
|
||||
invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = HORIZONTAL
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: java.awt.Component!, p1: [ERROR : Unresolved java classifier: Point]!, p2: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: java.awt.Component!, p1: kotlin.Int, p2: kotlin.Int, p3: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities
|
||||
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: java.awt.Component!, p1: [ERROR : Unresolved java classifier: Point]!, p2: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: java.awt.Component!, p1: kotlin.Int, p2: kotlin.Int, p3: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities
|
||||
// ERROR: Unresolved reference: unresolved
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
|
||||
fun foo() {
|
||||
<caret>SwingUtilities.convertPoint()
|
||||
|
||||
val bottom = SwingUtilities.BOTTOM
|
||||
|
||||
SwingUtilities.convertPoint()
|
||||
|
||||
SwingUtilities.unresolved
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: java.awt.Component!, p1: [ERROR : Unresolved java classifier: Point]!, p2: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: java.awt.Component!, p1: kotlin.Int, p2: kotlin.Int, p3: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities
|
||||
// ERROR: None of the following functions can be called with the arguments supplied: <br>public open fun convertPoint(p0: java.awt.Component!, p1: [ERROR : Unresolved java classifier: Point]!, p2: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities<br>public open fun convertPoint(p0: java.awt.Component!, p1: kotlin.Int, p2: kotlin.Int, p3: java.awt.Component!): [ERROR : Unresolved java classifier: Point]! defined in javax.swing.SwingUtilities
|
||||
// ERROR: Unresolved reference: unresolved
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
fun foo() {
|
||||
<caret>convertPoint()
|
||||
|
||||
val bottom = BOTTOM
|
||||
|
||||
convertPoint()
|
||||
|
||||
SwingUtilities.unresolved
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// INTENTION_TEXT: "Import members from 'kotlin.LazyThreadSafetyMode'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A {
|
||||
val v1: Int by lazy(<caret>LazyThreadSafetyMode.NONE) { 1 }
|
||||
val v2: Int by lazy(LazyThreadSafetyMode.PUBLICATION) { 1 }
|
||||
/*
|
||||
val v3 = LazyThreadSafetyMode.values
|
||||
val v4 = LazyThreadSafetyMode.valueOf("")
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import kotlin.LazyThreadSafetyMode.*
|
||||
|
||||
// INTENTION_TEXT: "Import members from 'kotlin.LazyThreadSafetyMode'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class A {
|
||||
val v1: Int by lazy(<caret>NONE) { 1 }
|
||||
val v2: Int by lazy(PUBLICATION) { 1 }
|
||||
/*
|
||||
val v3 = LazyThreadSafetyMode.values
|
||||
val v4 = LazyThreadSafetyMode.valueOf("")
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
|
||||
val v = <caret>LazyThreadSafetyMode.values
|
||||
@@ -0,0 +1,8 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
|
||||
import kotlin.text.Regex
|
||||
|
||||
fun foo() {
|
||||
<caret>Regex.escape("")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
class A {
|
||||
val v1: Int by <caret>Delegates.notNull()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
javax.swing.SwingUtilities<caret>.invokeLater { }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
<caret>invokeLater { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
<caret>javax.swing.SwingUtilities.invokeLater { }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
<caret>invokeLater { }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.invokeLater
|
||||
|
||||
fun foo() {
|
||||
invokeLater { }
|
||||
|
||||
val bottom = <caret>SwingUtilities.BOTTOM
|
||||
|
||||
SwingUtilities.invokeAndWait {
|
||||
invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = javax.swing.SwingUtilities.HORIZONTAL
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
fun foo() {
|
||||
invokeLater { }
|
||||
|
||||
val bottom = <caret>BOTTOM
|
||||
|
||||
invokeAndWait {
|
||||
invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = HORIZONTAL
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
// ERROR: Unresolved reference: unresolved
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
|
||||
fun foo() {
|
||||
SwingUtilities.invokeLater { }
|
||||
|
||||
val bottom = <caret>SwingUtilities.BOTTOM
|
||||
|
||||
SwingUtilities.invokeAndWait {
|
||||
SwingUtilities.invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = javax.swing.SwingUtilities.HORIZONTAL
|
||||
|
||||
SwingUtilities.unresolved
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// INTENTION_TEXT: "Import members from 'javax.swing.SwingUtilities'"
|
||||
// WITH_RUNTIME
|
||||
// ERROR: Unresolved reference: unresolved
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
import javax.swing.SwingUtilities.*
|
||||
|
||||
fun foo() {
|
||||
invokeLater { }
|
||||
|
||||
val bottom = <caret>BOTTOM
|
||||
|
||||
invokeAndWait {
|
||||
invokeLater { }
|
||||
}
|
||||
|
||||
val horizontal = HORIZONTAL
|
||||
|
||||
SwingUtilities.unresolved
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
// ERROR: Unresolved reference: unresolved
|
||||
|
||||
import javax.swing.SwingUtilities
|
||||
|
||||
val v = <caret>SwingUtilities.unresolved()
|
||||
Reference in New Issue
Block a user