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

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

Issue 1423993005: Quick Fix for CAN_BE_NULL_AFTER_NULL_AWARE. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
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 'package:analysis_server/plugin/edit/fix/fix_core.dart'; 7 import 'package:analysis_server/plugin/edit/fix/fix_core.dart';
8 import 'package:analysis_server/src/plugin/server_plugin.dart'; 8 import 'package:analysis_server/src/plugin/server_plugin.dart';
9 import 'package:analyzer/file_system/file_system.dart'; 9 import 'package:analyzer/file_system/file_system.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 static const REPLACE_BOOLEAN_WITH_BOOL = const FixKind( 180 static const REPLACE_BOOLEAN_WITH_BOOL = const FixKind(
181 'REPLACE_BOOLEAN_WITH_BOOL', 50, "Replace 'boolean' with 'bool'"); 181 'REPLACE_BOOLEAN_WITH_BOOL', 50, "Replace 'boolean' with 'bool'");
182 static const REPLACE_IMPORT_URI = 182 static const REPLACE_IMPORT_URI =
183 const FixKind('REPLACE_IMPORT_URI', 50, "Replace with '{0}'"); 183 const FixKind('REPLACE_IMPORT_URI', 50, "Replace with '{0}'");
184 static const REPLACE_VAR_WITH_DYNAMIC = const FixKind( 184 static const REPLACE_VAR_WITH_DYNAMIC = const FixKind(
185 'REPLACE_VAR_WITH_DYNAMIC', 50, "Replace 'var' with 'dynamic'"); 185 'REPLACE_VAR_WITH_DYNAMIC', 50, "Replace 'var' with 'dynamic'");
186 static const REPLACE_RETURN_TYPE_FUTURE = const FixKind( 186 static const REPLACE_RETURN_TYPE_FUTURE = const FixKind(
187 'REPLACE_RETURN_TYPE_FUTURE', 187 'REPLACE_RETURN_TYPE_FUTURE',
188 50, 188 50,
189 "Return 'Future' from 'async' function"); 189 "Return 'Future' from 'async' function");
190 static const REPLACE_WITH_NULL_AWARE = const FixKind(
191 'REPLACE_WITH_NULL_AWARE',
192 50,
193 "Replace the '.' with a '?.' in the invocation");
190 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant"); 194 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant");
191 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind( 195 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind(
192 'USE_EFFECTIVE_INTEGER_DIVISION', 196 'USE_EFFECTIVE_INTEGER_DIVISION',
193 50, 197 50,
194 "Use effective integer division ~/"); 198 "Use effective integer division ~/");
195 static const USE_EQ_EQ_NULL = 199 static const USE_EQ_EQ_NULL =
196 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'"); 200 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'");
197 static const USE_NOT_EQ_NULL = 201 static const USE_NOT_EQ_NULL =
198 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'"); 202 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'");
199 } 203 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698