| 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'; |
| 11 import 'package:analyzer/dart/ast/ast.dart'; | 11 import 'package:analyzer/dart/ast/ast.dart'; |
| 12 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 12 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| 13 import 'package:analyzer/error/error.dart'; | 13 import 'package:analyzer/error/error.dart'; |
| 14 import 'package:analyzer/file_system/file_system.dart'; | 14 import 'package:analyzer/file_system/file_system.dart'; |
| 15 import 'package:analyzer/source/package_map_resolver.dart'; | 15 import 'package:analyzer/source/package_map_resolver.dart'; |
| 16 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart'; | 16 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart'; |
| 17 import 'package:analyzer/src/dart/analysis/driver.dart'; | 17 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 18 import 'package:analyzer/src/dart/element/ast_provider.dart'; | 18 import 'package:analyzer/src/dart/element/ast_provider.dart'; |
| 19 import 'package:analyzer/src/error/codes.dart'; | 19 import 'package:analyzer/src/error/codes.dart'; |
| 20 import 'package:analyzer/src/generated/parser.dart'; | 20 import 'package:analyzer/src/generated/parser.dart'; |
| 21 import 'package:analyzer/src/generated/source.dart'; | 21 import 'package:analyzer/src/generated/source.dart'; |
| 22 import 'package:analyzer_plugin/protocol/protocol_common.dart' | 22 import 'package:analyzer_plugin/protocol/protocol_common.dart' |
| 23 hide AnalysisError; | 23 hide AnalysisError; |
| 24 import 'package:analyzer_plugin/utilities/fixes/fixes.dart'; |
| 24 import 'package:test/test.dart'; | 25 import 'package:test/test.dart'; |
| 25 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 26 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 26 | 27 |
| 27 import '../../abstract_single_unit.dart'; | 28 import '../../abstract_single_unit.dart'; |
| 28 import 'flutter_util.dart'; | 29 import 'flutter_util.dart'; |
| 29 | 30 |
| 30 main() { | 31 main() { |
| 31 defineReflectiveSuite(() { | 32 defineReflectiveSuite(() { |
| 32 defineReflectiveTests(FixProcessorTest); | 33 defineReflectiveTests(FixProcessorTest); |
| 33 defineReflectiveTests(LintFixTest); | 34 defineReflectiveTests(LintFixTest); |
| (...skipping 6868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6902 @override | 6903 @override |
| 6903 final AnalysisError error; | 6904 final AnalysisError error; |
| 6904 | 6905 |
| 6905 _DartFixContextImpl(this.resourceProvider, this.analysisDriver, | 6906 _DartFixContextImpl(this.resourceProvider, this.analysisDriver, |
| 6906 this.astProvider, this.unit, this.error); | 6907 this.astProvider, this.unit, this.error); |
| 6907 | 6908 |
| 6908 @override | 6909 @override |
| 6909 GetTopLevelDeclarations get getTopLevelDeclarations => | 6910 GetTopLevelDeclarations get getTopLevelDeclarations => |
| 6910 analysisDriver.getTopLevelNameDeclarations; | 6911 analysisDriver.getTopLevelNameDeclarations; |
| 6911 } | 6912 } |
| OLD | NEW |