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

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

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: Created 3 years, 7 months 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
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 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/protocol/protocol_generated.dart'
10 hide AnalysisError;
11 import 'package:analysis_server/src/services/correction/fix.dart'; 9 import 'package:analysis_server/src/services/correction/fix.dart';
12 import 'package:analysis_server/src/services/correction/fix_internal.dart'; 10 import 'package:analysis_server/src/services/correction/fix_internal.dart';
13 import 'package:analyzer/dart/ast/ast.dart'; 11 import 'package:analyzer/dart/ast/ast.dart';
14 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; 12 import 'package:analyzer/dart/ast/standard_resolution_map.dart';
15 import 'package:analyzer/error/error.dart'; 13 import 'package:analyzer/error/error.dart';
16 import 'package:analyzer/file_system/file_system.dart'; 14 import 'package:analyzer/file_system/file_system.dart';
17 import 'package:analyzer/source/package_map_resolver.dart'; 15 import 'package:analyzer/source/package_map_resolver.dart';
18 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart'; 16 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart';
19 import 'package:analyzer/src/dart/element/ast_provider.dart'; 17 import 'package:analyzer/src/dart/element/ast_provider.dart';
20 import 'package:analyzer/src/error/codes.dart'; 18 import 'package:analyzer/src/error/codes.dart';
21 import 'package:analyzer/src/generated/engine.dart'; 19 import 'package:analyzer/src/generated/engine.dart';
22 import 'package:analyzer/src/generated/parser.dart'; 20 import 'package:analyzer/src/generated/parser.dart';
23 import 'package:analyzer/src/generated/source.dart'; 21 import 'package:analyzer/src/generated/source.dart';
22 import 'package:analyzer_plugin/protocol/protocol_common.dart'
23 hide AnalysisError;
24 import 'package:test/test.dart'; 24 import 'package:test/test.dart';
25 import 'package:test_reflective_loader/test_reflective_loader.dart'; 25 import 'package:test_reflective_loader/test_reflective_loader.dart';
26 26
27 import '../../abstract_single_unit.dart'; 27 import '../../abstract_single_unit.dart';
28 import 'flutter_util.dart'; 28 import 'flutter_util.dart';
29 29
30 main() { 30 main() {
31 defineReflectiveSuite(() { 31 defineReflectiveSuite(() {
32 defineReflectiveTests(FixProcessorTest); 32 defineReflectiveTests(FixProcessorTest);
33 defineReflectiveTests(LintFixTest); 33 defineReflectiveTests(LintFixTest);
(...skipping 6878 matching lines...) Expand 10 before | Expand all | Expand 10 after
6912 6912
6913 @override 6913 @override
6914 final CompilationUnit unit; 6914 final CompilationUnit unit;
6915 6915
6916 @override 6916 @override
6917 final AnalysisError error; 6917 final AnalysisError error;
6918 6918
6919 _DartFixContextImpl(this.resourceProvider, this.getTopLevelDeclarations, 6919 _DartFixContextImpl(this.resourceProvider, this.getTopLevelDeclarations,
6920 this.analysisContext, this.astProvider, this.unit, this.error); 6920 this.analysisContext, this.astProvider, this.unit, this.error);
6921 } 6921 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698