| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; | 7 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; |
| 8 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart'; | 8 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart'; |
| 9 import 'package:analysis_server/src/services/correction/fix.dart'; | 9 import 'package:analysis_server/src/services/correction/fix.dart'; |
| 10 import 'package:analysis_server/src/services/correction/fix_internal.dart'; | 10 import 'package:analysis_server/src/services/correction/fix_internal.dart'; |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 expect( | 1263 expect( |
| 1264 SourceEdit.applySequence(libCode, fileEdit.edits), | 1264 SourceEdit.applySequence(libCode, fileEdit.edits), |
| 1265 r''' | 1265 r''' |
| 1266 library my.lib; | 1266 library my.lib; |
| 1267 | 1267 |
| 1268 class A {} | 1268 class A {} |
| 1269 | 1269 |
| 1270 class Test { | 1270 class Test { |
| 1271 } | 1271 } |
| 1272 '''); | 1272 '''); |
| 1273 expect(change.linkedEditGroups, isEmpty); | 1273 expect(change.linkedEditGroups, hasLength(1)); |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 test_createClass_innerLocalFunction() async { | 1276 test_createClass_innerLocalFunction() async { |
| 1277 await resolveTestUnit(''' | 1277 await resolveTestUnit(''' |
| 1278 f() { | 1278 f() { |
| 1279 g() { | 1279 g() { |
| 1280 Test v = null; | 1280 Test v = null; |
| 1281 } | 1281 } |
| 1282 } | 1282 } |
| 1283 '''); | 1283 '''); |
| (...skipping 5618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6902 @override | 6902 @override |
| 6903 final AnalysisError error; | 6903 final AnalysisError error; |
| 6904 | 6904 |
| 6905 _DartFixContextImpl(this.resourceProvider, this.analysisDriver, | 6905 _DartFixContextImpl(this.resourceProvider, this.analysisDriver, |
| 6906 this.astProvider, this.unit, this.error); | 6906 this.astProvider, this.unit, this.error); |
| 6907 | 6907 |
| 6908 @override | 6908 @override |
| 6909 GetTopLevelDeclarations get getTopLevelDeclarations => | 6909 GetTopLevelDeclarations get getTopLevelDeclarations => |
| 6910 analysisDriver.getTopLevelNameDeclarations; | 6910 analysisDriver.getTopLevelNameDeclarations; |
| 6911 } | 6911 } |
| OLD | NEW |