| 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 4694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4705 await resolveTestUnit(''' | 4705 await resolveTestUnit(''' |
| 4706 import 'lib.dart'; | 4706 import 'lib.dart'; |
| 4707 main() { | 4707 main() { |
| 4708 test(getFuture()); | 4708 test(getFuture()); |
| 4709 } | 4709 } |
| 4710 '''); | 4710 '''); |
| 4711 await assertHasFix( | 4711 await assertHasFix( |
| 4712 DartFixKind.CREATE_FUNCTION, | 4712 DartFixKind.CREATE_FUNCTION, |
| 4713 ''' | 4713 ''' |
| 4714 import 'dart:async'; | 4714 import 'dart:async'; |
| 4715 |
| 4715 import 'lib.dart'; | 4716 import 'lib.dart'; |
| 4716 main() { | 4717 main() { |
| 4717 test(getFuture()); | 4718 test(getFuture()); |
| 4718 } | 4719 } |
| 4719 | 4720 |
| 4720 void test(Future future) { | 4721 void test(Future future) { |
| 4721 } | 4722 } |
| 4722 '''); | 4723 '''); |
| 4723 } | 4724 } |
| 4724 | 4725 |
| (...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6901 @override | 6902 @override |
| 6902 final AnalysisError error; | 6903 final AnalysisError error; |
| 6903 | 6904 |
| 6904 _DartFixContextImpl(this.resourceProvider, this.analysisDriver, | 6905 _DartFixContextImpl(this.resourceProvider, this.analysisDriver, |
| 6905 this.astProvider, this.unit, this.error); | 6906 this.astProvider, this.unit, this.error); |
| 6906 | 6907 |
| 6907 @override | 6908 @override |
| 6908 GetTopLevelDeclarations get getTopLevelDeclarations => | 6909 GetTopLevelDeclarations get getTopLevelDeclarations => |
| 6909 analysisDriver.getTopLevelNameDeclarations; | 6910 analysisDriver.getTopLevelNameDeclarations; |
| 6910 } | 6911 } |
| OLD | NEW |