Index: pkg/analysis_server/test/services/correction/fix_test.dart |
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart |
index 0c481bf97470ee2234475fec5056fca0c911d1df..c1a9993ba8252d3a9b6784c07df2ed3705d91e80 100644 |
--- a/pkg/analysis_server/test/services/correction/fix_test.dart |
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart |
@@ -1293,6 +1293,23 @@ main() { |
} |
f(String p) {} |
'''); |
+ _assertLinkedGroup(change.linkedEditGroups[0], ['String test;']); |
+ _assertLinkedGroup(change.linkedEditGroups[1], ['test;', 'test);']); |
+ } |
+ |
+ void test_createLocalVariable_read_typeInvocationTarget() { |
+ resolveTestUnit(''' |
+main() { |
+ test.add('hello'); |
+} |
+'''); |
+ assertHasFix(DartFixKind.CREATE_LOCAL_VARIABLE, ''' |
+main() { |
+ var test; |
+ test.add('hello'); |
+} |
+'''); |
+ _assertLinkedGroup(change.linkedEditGroups[0], ['test;', 'test.add(']); |
} |
void test_createLocalVariable_write_assignment() { |