[java-completion] Complete statement: process loops uniformly; wrap loop body

Fixes IDEA-73881 "Complete Current Statement" incorrectly handles for with non-block loop statement

GitOrigin-RevId: 0e92756e7536f5d939db3f2f0ed42c8e716076c3
This commit is contained in:
Tagir Valeev
2022-04-21 08:05:42 +00:00
committed by intellij-monorepo-bot
parent c62e2b7740
commit b5838faa84
11 changed files with 155 additions and 187 deletions
@@ -0,0 +1,6 @@
class X {{
int[] a = new int[3];
long res = 0;
for (int val : a)<caret>
res+=val
}}