create method from usage: treat polyadic expressions as for completion by containing expression (IDEA-151432)

This commit is contained in:
Anna Kozlova
2017-05-18 13:25:30 +03:00
parent 2740fe6831
commit e747d52bf5
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,10 @@
// "Create method 'f'" "true"
class Test {
{
long l = f(1) + f(2);
}
private long f(int i) {
return 0;
}
}
@@ -0,0 +1,6 @@
// "Create method 'f'" "true"
class Test {
{
long l = f(1) + <caret>f(2);
}
}