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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/fix.dart

Issue 2808803003: Issue 29303. Prefer import updates and SDK imports over other imports. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library analysis_server.src.services.correction.fix; 5 library analysis_server.src.services.correction.fix;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart';
10 import 'package:analysis_server/src/plugin/server_plugin.dart'; 10 import 'package:analysis_server/src/plugin/server_plugin.dart';
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method"); 170 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method");
171 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX', 171 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX',
172 51, "Use imported library '{0}' with prefix '{1}'"); 172 51, "Use imported library '{0}' with prefix '{1}'");
173 static const IMPORT_LIBRARY_PROJECT1 = 173 static const IMPORT_LIBRARY_PROJECT1 =
174 const FixKind('IMPORT_LIBRARY_PROJECT1', 47, "Import library '{0}'"); 174 const FixKind('IMPORT_LIBRARY_PROJECT1', 47, "Import library '{0}'");
175 static const IMPORT_LIBRARY_PROJECT2 = 175 static const IMPORT_LIBRARY_PROJECT2 =
176 const FixKind('IMPORT_LIBRARY_PROJECT2', 48, "Import library '{0}'"); 176 const FixKind('IMPORT_LIBRARY_PROJECT2', 48, "Import library '{0}'");
177 static const IMPORT_LIBRARY_PROJECT3 = 177 static const IMPORT_LIBRARY_PROJECT3 =
178 const FixKind('IMPORT_LIBRARY_PROJECT3', 49, "Import library '{0}'"); 178 const FixKind('IMPORT_LIBRARY_PROJECT3', 49, "Import library '{0}'");
179 static const IMPORT_LIBRARY_SDK = 179 static const IMPORT_LIBRARY_SDK =
180 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); 180 const FixKind('IMPORT_LIBRARY_SDK', 46, "Import library '{0}'");
181 static const IMPORT_LIBRARY_SHOW = 181 static const IMPORT_LIBRARY_SHOW =
182 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); 182 const FixKind('IMPORT_LIBRARY_SHOW', 45, "Update library '{0}' import");
183 static const INSERT_SEMICOLON = 183 static const INSERT_SEMICOLON =
184 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); 184 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'");
185 static const LINT_ADD_OVERRIDE = 185 static const LINT_ADD_OVERRIDE =
186 const FixKind('LINT_ADD_OVERRIDE', 50, "Add '@override' annotation"); 186 const FixKind('LINT_ADD_OVERRIDE', 50, "Add '@override' annotation");
187 static const LINT_REMOVE_INTERPOLATION_BRACES = const FixKind( 187 static const LINT_REMOVE_INTERPOLATION_BRACES = const FixKind(
188 'LINT_REMOVE_INTERPOLATION_BRACES', 188 'LINT_REMOVE_INTERPOLATION_BRACES',
189 50, 189 50,
190 'Remove unnecessary interpolation braces'); 190 'Remove unnecessary interpolation braces');
191 static const MAKE_CLASS_ABSTRACT = 191 static const MAKE_CLASS_ABSTRACT =
192 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); 192 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract");
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 @override 246 @override
247 final AnalysisError error; 247 final AnalysisError error;
248 248
249 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); 249 FixContextImpl(this.resourceProvider, this.analysisContext, this.error);
250 250
251 FixContextImpl.from(FixContext other) 251 FixContextImpl.from(FixContext other)
252 : resourceProvider = other.resourceProvider, 252 : resourceProvider = other.resourceProvider,
253 analysisContext = other.analysisContext, 253 analysisContext = other.analysisContext,
254 error = other.error; 254 error = other.error;
255 } 255 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698