| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |