introduce variable: correctly detect anchor to insert variable declaration near for statement (IDEA-89351)

This commit is contained in:
anna
2012-08-01 12:27:01 +02:00
parent 4ffa2bfa49
commit 10f113df0a
4 changed files with 30 additions and 0 deletions
@@ -0,0 +1,12 @@
import java.util.*;
public class SomeClass {
static List foo(){return null;}
public static void main(String[] args) {
for (Iterator it = <selection>foo()</selection>.listIterator(foo().size()); it.hasNext(); ) {
}
}
}