mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-78821 implicit closure parameter should be in control flow
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ public class ControlFlowBuilder extends GroovyRecursiveElementVisitor {
|
||||
}
|
||||
|
||||
private void buildFlowForClosure(final GrClosableBlock closure) {
|
||||
for (GrParameter parameter : closure.getParameters()) {
|
||||
for (GrParameter parameter : closure.getAllParameters()) {
|
||||
addNode(new ReadWriteVariableInstruction(parameter.getName(), parameter, myInstructionNumber++, true));
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ with {
|
||||
}
|
||||
-----
|
||||
0(1) element: null
|
||||
1(2) WRITE owner
|
||||
2(3) READ e
|
||||
3(4) WRITE t
|
||||
4() element: null
|
||||
1(2) WRITE it
|
||||
2(3) WRITE owner
|
||||
3(4) READ e
|
||||
4(5) WRITE t
|
||||
5() element: null
|
||||
@@ -4,9 +4,9 @@ def foo = {
|
||||
}
|
||||
-----
|
||||
0(1) element: null
|
||||
1(2) WRITE owner
|
||||
2(3) WRITE g
|
||||
3(4) READ g
|
||||
4(5) element: Generalized list MAYBE_RETURN
|
||||
5() element: null
|
||||
|
||||
1(2) WRITE it
|
||||
2(3) WRITE owner
|
||||
3(4) WRITE g
|
||||
4(5) READ g
|
||||
5(6) element: Generalized list MAYBE_RETURN
|
||||
6() element: null
|
||||
Reference in New Issue
Block a user