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

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

Issue 2616163002: Remove REPLACE_IMPORT_URI Quick Fix. (Closed)
Patch Set: Created 3 years, 11 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 | pkg/analysis_server/lib/src/services/correction/fix_internal.dart » ('j') | 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 static const REMOVE_UNNECESSARY_CAST = 202 static const REMOVE_UNNECESSARY_CAST =
203 const FixKind('REMOVE_UNNECESSARY_CAST', 50, "Remove unnecessary cast"); 203 const FixKind('REMOVE_UNNECESSARY_CAST', 50, "Remove unnecessary cast");
204 static const REMOVE_UNUSED_CATCH_CLAUSE = 204 static const REMOVE_UNUSED_CATCH_CLAUSE =
205 const FixKind('REMOVE_UNUSED_CATCH', 50, "Remove unused 'catch' clause"); 205 const FixKind('REMOVE_UNUSED_CATCH', 50, "Remove unused 'catch' clause");
206 static const REMOVE_UNUSED_CATCH_STACK = const FixKind( 206 static const REMOVE_UNUSED_CATCH_STACK = const FixKind(
207 'REMOVE_UNUSED_CATCH_STACK', 50, "Remove unused stack trace variable"); 207 'REMOVE_UNUSED_CATCH_STACK', 50, "Remove unused stack trace variable");
208 static const REMOVE_UNUSED_IMPORT = 208 static const REMOVE_UNUSED_IMPORT =
209 const FixKind('REMOVE_UNUSED_IMPORT', 50, "Remove unused import"); 209 const FixKind('REMOVE_UNUSED_IMPORT', 50, "Remove unused import");
210 static const REPLACE_BOOLEAN_WITH_BOOL = const FixKind( 210 static const REPLACE_BOOLEAN_WITH_BOOL = const FixKind(
211 'REPLACE_BOOLEAN_WITH_BOOL', 50, "Replace 'boolean' with 'bool'"); 211 'REPLACE_BOOLEAN_WITH_BOOL', 50, "Replace 'boolean' with 'bool'");
212 static const REPLACE_IMPORT_URI =
213 const FixKind('REPLACE_IMPORT_URI', 50, "Replace with '{0}'");
214 static const REPLACE_VAR_WITH_DYNAMIC = const FixKind( 212 static const REPLACE_VAR_WITH_DYNAMIC = const FixKind(
215 'REPLACE_VAR_WITH_DYNAMIC', 50, "Replace 'var' with 'dynamic'"); 213 'REPLACE_VAR_WITH_DYNAMIC', 50, "Replace 'var' with 'dynamic'");
216 static const REPLACE_RETURN_TYPE_FUTURE = const FixKind( 214 static const REPLACE_RETURN_TYPE_FUTURE = const FixKind(
217 'REPLACE_RETURN_TYPE_FUTURE', 215 'REPLACE_RETURN_TYPE_FUTURE',
218 50, 216 50,
219 "Return 'Future' from 'async' function"); 217 "Return 'Future' from 'async' function");
220 static const REPLACE_WITH_NULL_AWARE = const FixKind( 218 static const REPLACE_WITH_NULL_AWARE = const FixKind(
221 'REPLACE_WITH_NULL_AWARE', 219 'REPLACE_WITH_NULL_AWARE',
222 50, 220 50,
223 "Replace the '.' with a '?.' in the invocation"); 221 "Replace the '.' with a '?.' in the invocation");
(...skipping 21 matching lines...) Expand all
245 @override 243 @override
246 final AnalysisError error; 244 final AnalysisError error;
247 245
248 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); 246 FixContextImpl(this.resourceProvider, this.analysisContext, this.error);
249 247
250 FixContextImpl.from(FixContext other) 248 FixContextImpl.from(FixContext other)
251 : resourceProvider = other.resourceProvider, 249 : resourceProvider = other.resourceProvider,
252 analysisContext = other.analysisContext, 250 analysisContext = other.analysisContext,
253 error = other.error; 251 error = other.error;
254 } 252 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/fix_internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698