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

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

Issue 2827863003: Revert "New Lint quick-fix: prefer_collection_literals (#29378)" (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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27d7d5d122fd8cacc414a32c6fe1b96cf15a3990..4c7c487ffe87e05d837f69792779f2004a2b7f27 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix.dart
@@ -109,9 +109,8 @@ bool hasFix(ErrorCode errorCode) =>
errorCode == CompileTimeErrorCode.UNDEFINED_NAMED_PARAMETER ||
(errorCode is LintCode &&
(errorCode.name == LintNames.annotate_overrides ||
- errorCode.name == LintNames.avoid_init_to_null ||
- errorCode.name == LintNames.prefer_collection_literals ||
- errorCode.name == LintNames.unnecessary_brace_in_string_interp));
+ errorCode.name == LintNames.unnecessary_brace_in_string_interp ||
+ errorCode.name == LintNames.avoid_init_to_null));
/**
* An enumeration of possible quick fix kinds.
@@ -223,8 +222,6 @@ class DartFixKind {
'REPLACE_RETURN_TYPE_FUTURE',
50,
"Return 'Future' from 'async' function");
- static const REPLACE_WITH_LITERAL =
- const FixKind('REPLACE_WITH_LITERAL', 50, 'Replace with literal');
static const REPLACE_WITH_NULL_AWARE = const FixKind(
'REPLACE_WITH_NULL_AWARE',
50,
« 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