mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add parent visiting in inference graph
GitOrigin-RevId: 9fe0a21cab61f2ef6c13a5fa0dfd0092ba188810
This commit is contained in:
committed by
intellij-monorepo-bot
parent
40a961ed58
commit
a7dab00afd
+4
@@ -49,6 +49,10 @@ data class InferenceUnitGraph(val units: List<InferenceUnitNode>) {
|
||||
}.forEach { parameter ->
|
||||
units.find { it.type == parameter }?.run { visitTypes(this, visited, order) }
|
||||
}
|
||||
val parent = unit.parent
|
||||
if (parent != null) {
|
||||
visitTypes(parent, visited, order)
|
||||
}
|
||||
order.add(unit)
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -524,4 +524,8 @@ class AA { static void fo<caret>o(Integer a) {} }
|
||||
void testCallWithInnerTypeParameter() {
|
||||
doTest(true)
|
||||
}
|
||||
|
||||
void testUnresolvedCode3() {
|
||||
doTest(true)
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
def bar(a, b) {
|
||||
b(a)
|
||||
}
|
||||
|
||||
bar(unresolved) {}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
Void bar(Object a, Closure<Void> b) {
|
||||
b(a)
|
||||
}
|
||||
|
||||
bar(unresolved) {}
|
||||
Reference in New Issue
Block a user