inplace introduce: append semicolon if needed (to avoid parsing assignment as local variable)

This commit is contained in:
anna
2011-07-29 17:48:15 +04:00
parent df1e55e537
commit 0cb64bd6ae
10 changed files with 113 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
class Test {
private String myTimer;
Test() {
"<caret>"
myTimer = "abc";
}
}

View File

@@ -0,0 +1,8 @@
class Test {
private String myTimer;
Test() {
"<caret>"
myTimer = "";
}
}

View File

@@ -0,0 +1,10 @@
class Test {
private Foo myFoo;
Test() {
new Fo<caret>o()
myFoo = new Foo();
}
}
class Foo{}

View File

@@ -0,0 +1,11 @@
class Test {
private Foo myFoo;
private final Foo foo;
Test() {
foo = new Foo();
myFoo = foo;
}
}
class Foo{}

View File

@@ -0,0 +1,9 @@
class Test {
private String myTimer;
private final String string;
Test() {
string =<caret> "";
myTimer = string;
}
}

View File

@@ -0,0 +1,9 @@
class Test {
private String myTimer;
private final String string;
Test() {
string = "";
myTimer = "abc";
}
}