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

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

Issue 3004293002: Add fixes for two more lint rules (Closed)
Patch Set: Created 3 years, 3 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 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; 5 import 'package:analysis_server/plugin/edit/fix/fix_core.dart';
6 import 'package:analysis_server/src/services/correction/fix_internal.dart'; 6 import 'package:analysis_server/src/services/correction/fix_internal.dart';
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 import 'package:analyzer/file_system/file_system.dart'; 8 import 'package:analyzer/file_system/file_system.dart';
9 import 'package:analyzer/src/dart/analysis/driver.dart'; 9 import 'package:analyzer/src/dart/analysis/driver.dart';
10 import 'package:analyzer/src/error/codes.dart'; 10 import 'package:analyzer/src/error/codes.dart';
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 'LINT_REMOVE_INTERPOLATION_BRACES', 164 'LINT_REMOVE_INTERPOLATION_BRACES',
165 50, 165 50,
166 'Remove unnecessary interpolation braces'); 166 'Remove unnecessary interpolation braces');
167 static const MAKE_CLASS_ABSTRACT = 167 static const MAKE_CLASS_ABSTRACT =
168 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); 168 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract");
169 static const REMOVE_DEAD_CODE = 169 static const REMOVE_DEAD_CODE =
170 const FixKind('REMOVE_DEAD_CODE', 50, "Remove dead code"); 170 const FixKind('REMOVE_DEAD_CODE', 50, "Remove dead code");
171 static const MAKE_FIELD_NOT_FINAL = 171 static const MAKE_FIELD_NOT_FINAL =
172 const FixKind('MAKE_FIELD_NOT_FINAL', 50, "Make field '{0}' not final"); 172 const FixKind('MAKE_FIELD_NOT_FINAL', 50, "Make field '{0}' not final");
173 static const REMOVE_AWAIT = const FixKind('REMOVE_AWAIT', 50, "Remove await"); 173 static const REMOVE_AWAIT = const FixKind('REMOVE_AWAIT', 50, "Remove await");
174 static const REMOVE_EMPTY_CATCH =
175 const FixKind('REMOVE_EMPTY_CATCH', 50, "Remove empty catch clause");
176 static const REMOVE_EMPTY_CONSTRUCTOR_BODY = const FixKind(
177 'REMOVE_EMPTY_CONSTRUCTOR_BODY', 50, "Remove empty constructor body");
174 static const REMOVE_EMPTY_ELSE = 178 static const REMOVE_EMPTY_ELSE =
175 const FixKind('REMOVE_EMPTY_ELSE', 50, "Remove empty else clause"); 179 const FixKind('REMOVE_EMPTY_ELSE', 50, "Remove empty else clause");
176 static const REMOVE_EMPTY_STATEMENT = 180 static const REMOVE_EMPTY_STATEMENT =
177 const FixKind('REMOVE_EMPTY_STATEMENT', 50, "Remove empty statement"); 181 const FixKind('REMOVE_EMPTY_STATEMENT', 50, "Remove empty statement");
178 static const REMOVE_INITIALIZER = 182 static const REMOVE_INITIALIZER =
179 const FixKind('REMOVE_INITIALIZER', 50, "Remove initializer"); 183 const FixKind('REMOVE_INITIALIZER', 50, "Remove initializer");
180 static const REMOVE_METHOD_DECLARATION = const FixKind( 184 static const REMOVE_METHOD_DECLARATION = const FixKind(
181 'REMOVE_METHOD_DECLARATION', 50, 'Remove method declaration'); 185 'REMOVE_METHOD_DECLARATION', 50, 'Remove method declaration');
182 static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION = const FixKind( 186 static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION = const FixKind(
183 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION', 187 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION',
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 @override 249 @override
246 final AnalysisError error; 250 final AnalysisError error;
247 251
248 FixContextImpl(this.resourceProvider, this.analysisDriver, this.error); 252 FixContextImpl(this.resourceProvider, this.analysisDriver, this.error);
249 253
250 FixContextImpl.from(FixContext other) 254 FixContextImpl.from(FixContext other)
251 : resourceProvider = other.resourceProvider, 255 : resourceProvider = other.resourceProvider,
252 analysisDriver = other.analysisDriver, 256 analysisDriver = other.analysisDriver,
253 error = other.error; 257 error = other.error;
254 } 258 }
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