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

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

Issue 3007783002: Add fixes for two additional lints (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/correction/fix.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/fix.dart b/pkg/analysis_server/lib/src/services/correction/fix.dart
index 3ac901331a647e7e5e98551b274cf90316d4e242..4ad9804107286b5094e6c411964f0153bf02317f 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix.dart
@@ -158,6 +158,8 @@ class DartFixKind {
'INVOKE_CONSTRUCTOR_USING_NEW', 50, "Invoke constructor using 'new'");
static const LINT_ADD_OVERRIDE =
const FixKind('LINT_ADD_OVERRIDE', 50, "Add '@override' annotation");
+ static const LINT_ADD_REQUIRED =
+ const FixKind('LINT_ADD_REQUIRED', 50, "Add '@required' annotation");
static const LINT_REMOVE_INTERPOLATION_BRACES = const FixKind(
'LINT_REMOVE_INTERPOLATION_BRACES',
50,
@@ -169,6 +171,8 @@ class DartFixKind {
static const MAKE_FIELD_NOT_FINAL =
const FixKind('MAKE_FIELD_NOT_FINAL', 50, "Make field '{0}' not final");
static const REMOVE_AWAIT = const FixKind('REMOVE_AWAIT', 50, "Remove await");
+ static const REMOVE_EMPTY_ELSE =
+ const FixKind('REMOVE_EMPTY_ELSE', 50, "Remove empty else clause");
static const REMOVE_EMPTY_STATEMENT =
const FixKind('REMOVE_EMPTY_STATEMENT', 50, "Remove empty statement");
static const REMOVE_INITIALIZER =

Powered by Google App Engine
This is Rietveld 408576698