| Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| index c3a90464aa8d9d2a73d4434edfdafc39596b6c73..2fcf8b27b6e09f1dcd934579bfbd9c795fbfd747 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/PropertySemanticProcessorTest.java
|
| @@ -97,6 +97,35 @@ public class PropertySemanticProcessorTest extends SemanticProcessorTest {
|
| "}");
|
| }
|
|
|
| + public void test_makeProperty_shareGetSetNames() throws Exception {
|
| + translateSingleFile(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "package test;",
|
| + "public class Test {",
|
| + " public int getFoo() {",
|
| + " return 0;",
|
| + " }",
|
| + " public void setFoo(int v) {",
|
| + " }",
|
| + " public void main() {",
|
| + " setFoo(1);",
|
| + " print(getFoo());",
|
| + " }",
|
| + "}");
|
| + PropertySemanticProcessor.INSTANCE.process(context, unit);
|
| + context.ensureUniqueClassMemberNames(unit);
|
| + assertFormattedSource(
|
| + "class Test {",
|
| + " int get foo => 0;",
|
| + " void set foo(int v) {",
|
| + " }",
|
| + " void main() {",
|
| + " foo = 1;",
|
| + " print(foo);",
|
| + " }",
|
| + "}");
|
| + }
|
| +
|
| public void test_renamePrivateFields() throws Exception {
|
| translateSingleFile(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|