Minor changes on code review
This commit is contained in:
+4
-1
@@ -69,7 +69,10 @@ class StaticMembersCompletion(
|
|||||||
val containers = file.importDirectives
|
val containers = file.importDirectives
|
||||||
.filter { !it.isAllUnder }
|
.filter { !it.isAllUnder }
|
||||||
.map {
|
.map {
|
||||||
it.targetDescriptors(resolutionFacade).map { it.containingDeclaration }.distinct().singleOrNull() as? ClassDescriptor
|
it.targetDescriptors(resolutionFacade)
|
||||||
|
.map { it.containingDeclaration }
|
||||||
|
.distinct()
|
||||||
|
.singleOrNull() as? ClassDescriptor
|
||||||
}
|
}
|
||||||
.filterNotNull()
|
.filterNotNull()
|
||||||
.toSet()
|
.toSet()
|
||||||
|
|||||||
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
fun foo() {
|
fun foo() {
|
||||||
invoke<caret>
|
i<caret>
|
||||||
}
|
}
|
||||||
|
|
||||||
// INVOCATION_COUNT: 2
|
// INVOCATION_COUNT: 2
|
||||||
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: "(Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
|
// 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: "" }
|
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeAndWait", itemText: "SwingUtilities.invokeAndWait", tailText: "(Runnable!) (javax.swing)", typeText: "Unit", attributes: "" }
|
||||||
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: " {...} ((() -> Unit)!) (javax.swing)", typeText: "Unit", attributes: "" }
|
// EXIST_JAVA_ONLY: { allLookupStrings: "invokeLater", itemText: "SwingUtilities.invokeLater", tailText: " {...} ((() -> Unit)!) (javax.swing)", typeText: "Unit", attributes: "" }
|
||||||
// ABSENT: { itemText: "SwingUtilities.convertScreenLocationToParent" }
|
// ABSENT: { itemText: "SwingUtilities.installSwingDropTargetAsNecessary" }
|
||||||
|
|||||||
Reference in New Issue
Block a user