mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inplace introduce: preserve offset corresponding to editor changes
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.lang.String;
|
||||
|
||||
class A {
|
||||
A(String str) {
|
||||
}
|
||||
|
||||
public static String getVeryLongString() {
|
||||
return "";
|
||||
}
|
||||
|
||||
void foo() {
|
||||
A a = new A(getVeryLongString());
|
||||
A a1 = new A(getVery<caret>LongString());
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import java.lang.String;
|
||||
|
||||
class A {
|
||||
|
||||
public static final String O = getVeryLongString();
|
||||
|
||||
A(String str) {
|
||||
}
|
||||
|
||||
public static String getVeryLongString() {
|
||||
return "";
|
||||
}
|
||||
|
||||
void foo() {
|
||||
A a = new A(O);
|
||||
A a1 = new A(O);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user