Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2070)

Side by Side Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 750423002: Issue 21650. Fix linked positions added after insert code buffers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.correction.fix; 5 library test.services.correction.fix;
6 6
7 import 'package:analysis_server/src/protocol.dart' hide AnalysisError; 7 import 'package:analysis_server/src/protocol.dart' hide AnalysisError;
8 import 'package:analysis_server/src/services/correction/fix.dart'; 8 import 'package:analysis_server/src/services/correction/fix.dart';
9 import 'package:analysis_server/src/services/index/index.dart'; 9 import 'package:analysis_server/src/services/index/index.dart';
10 import 'package:analysis_server/src/services/index/local_memory_index.dart'; 10 import 'package:analysis_server/src/services/index/local_memory_index.dart';
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 class A { 226 class A {
227 A.named(int i, double d) { 227 A.named(int i, double d) {
228 } 228 }
229 229
230 method() {} 230 method() {}
231 } 231 }
232 main() { 232 main() {
233 new A.named(1, 2.0); 233 new A.named(1, 2.0);
234 } 234 }
235 '''); 235 ''');
236 _assertLinkedGroup(
237 change.linkedEditGroups[0],
238 ['named(int ', 'named(1']);
236 } 239 }
237 240
238 void test_createConstructorSuperExplicit() { 241 void test_createConstructorSuperExplicit() {
239 _indexTestUnit(''' 242 _indexTestUnit('''
240 class A { 243 class A {
241 A(bool p1, int p2, double p3, String p4, {p5}); 244 A(bool p1, int p2, double p3, String p4, {p5});
242 } 245 }
243 class B extends A { 246 class B extends A {
244 B() {} 247 B() {}
245 } 248 }
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 positions.add(new Position(testFile, offset)); 2348 positions.add(new Position(testFile, offset));
2346 } 2349 }
2347 return positions; 2350 return positions;
2348 } 2351 }
2349 2352
2350 void _indexTestUnit(String code) { 2353 void _indexTestUnit(String code) {
2351 resolveTestUnit(code); 2354 resolveTestUnit(code);
2352 index.indexUnit(context, testUnit); 2355 index.indexUnit(context, testUnit);
2353 } 2356 }
2354 } 2357 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698