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

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

Issue 586453003: Issue 13783. Add file from missing import. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 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 8b20c9a35b3da569214b9509652a01071396e171..56bab028b184478f1cc598507bc393929ca67ff9 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix.dart
@@ -5,8 +5,8 @@
library services.correction.fix;
import 'package:analysis_server/src/protocol.dart' show SourceChange;
-import 'package:analysis_server/src/services/search/search_engine.dart';
import 'package:analysis_server/src/services/correction/fix_internal.dart';
+import 'package:analysis_server/src/services/search/search_engine.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/error.dart';
import 'package:analyzer/src/generated/source.dart';
@@ -48,38 +48,39 @@ class Fix {
class FixKind {
static const ADD_PACKAGE_DEPENDENCY =
const FixKind('ADD_PACKAGE_DEPENDENCY', 50, "Add dependency on package '{0}'");
- static const ADD_SUPER_CONSTRUCTOR_INVOCATION =
- const FixKind(
- 'ADD_SUPER_CONSTRUCTOR_INVOCATION',
- 50,
- "Add super constructor {0} invocation");
+ static const ADD_SUPER_CONSTRUCTOR_INVOCATION = const FixKind(
+ 'ADD_SUPER_CONSTRUCTOR_INVOCATION',
+ 50,
+ "Add super constructor {0} invocation");
static const CHANGE_TO = const FixKind('CHANGE_TO', 51, "Change to '{0}'");
- static const CHANGE_TO_STATIC_ACCESS =
- const FixKind(
- 'CHANGE_TO_STATIC_ACCESS',
- 50,
- "Change access to static using '{0}'");
+ static const CHANGE_TO_STATIC_ACCESS = const FixKind(
+ 'CHANGE_TO_STATIC_ACCESS',
+ 50,
+ "Change access to static using '{0}'");
static const CREATE_CLASS =
const FixKind('CREATE_CLASS', 50, "Create class '{0}'");
static const CREATE_CONSTRUCTOR =
const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'");
- static const CREATE_CONSTRUCTOR_SUPER =
- const FixKind('CREATE_CONSTRUCTOR_SUPER', 50, "Create constructor to call {0}");
+ static const CREATE_CONSTRUCTOR_SUPER = const FixKind(
+ 'CREATE_CONSTRUCTOR_SUPER',
+ 50,
+ "Create constructor to call {0}");
+ static const CREATE_FILE =
+ const FixKind('CREATE_FILE', 50, "Create file '{0}'");
static const CREATE_FUNCTION =
const FixKind('CREATE_FUNCTION', 49, "Create function '{0}'");
static const CREATE_METHOD =
const FixKind('CREATE_METHOD', 50, "Create method '{0}'");
- static const CREATE_MISSING_OVERRIDES =
- const FixKind('CREATE_MISSING_OVERRIDES', 50, "Create {0} missing override(s)");
+ static const CREATE_MISSING_OVERRIDES = const FixKind(
+ 'CREATE_MISSING_OVERRIDES',
+ 50,
+ "Create {0} missing override(s)");
static const CREATE_NO_SUCH_METHOD =
const FixKind('CREATE_NO_SUCH_METHOD', 49, "Create 'noSuchMethod' method");
- static const CREATE_PART =
- const FixKind('CREATE_PART', 50, "Create part '{0}'");
- static const IMPORT_LIBRARY_PREFIX =
- const FixKind(
- 'IMPORT_LIBRARY_PREFIX',
- 51,
- "Use imported library '{0}' with prefix '{1}'");
+ static const IMPORT_LIBRARY_PREFIX = const FixKind(
+ 'IMPORT_LIBRARY_PREFIX',
+ 51,
+ "Use imported library '{0}' with prefix '{1}'");
static const IMPORT_LIBRARY_PROJECT =
const FixKind('IMPORT_LIBRARY_PROJECT', 51, "Import library '{0}'");
static const IMPORT_LIBRARY_SDK =
@@ -90,32 +91,31 @@ class FixKind {
const FixKind('INSERT_SEMICOLON', 50, "Insert ';'");
static const MAKE_CLASS_ABSTRACT =
const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract");
- static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION =
- const FixKind(
- 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION',
- 50,
- "Remove parameters in getter declaration");
- static const REMOVE_PARENTHESIS_IN_GETTER_INVOCATION =
- const FixKind(
- 'REMOVE_PARENTHESIS_IN_GETTER_INVOCATION',
- 50,
- "Remove parentheses in getter invocation");
+ static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION = const FixKind(
+ 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION',
+ 50,
+ "Remove parameters in getter declaration");
+ static const REMOVE_PARENTHESIS_IN_GETTER_INVOCATION = const FixKind(
+ 'REMOVE_PARENTHESIS_IN_GETTER_INVOCATION',
+ 50,
+ "Remove parentheses in getter invocation");
static const REMOVE_UNNECASSARY_CAST =
const FixKind('REMOVE_UNNECASSARY_CAST', 50, "Remove unnecessary cast");
static const REMOVE_UNUSED_IMPORT =
const FixKind('REMOVE_UNUSED_IMPORT', 50, "Remove unused import");
- static const REPLACE_BOOLEAN_WITH_BOOL =
- const FixKind('REPLACE_BOOLEAN_WITH_BOOL', 50, "Replace 'boolean' with 'bool'");
+ static const REPLACE_BOOLEAN_WITH_BOOL = const FixKind(
+ 'REPLACE_BOOLEAN_WITH_BOOL',
+ 50,
+ "Replace 'boolean' with 'bool'");
static const REPLACE_IMPORT_URI =
const FixKind('REPLACE_IMPORT_URI', 50, "Replace with '{0}'");
static const REPLACE_VAR_WITH_DYNAMIC =
const FixKind('REPLACE_VAR_WITH_DYNAMIC', 50, "Replace 'var' with 'dynamic'");
static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant");
- static const USE_EFFECTIVE_INTEGER_DIVISION =
- const FixKind(
- 'USE_EFFECTIVE_INTEGER_DIVISION',
- 50,
- "Use effective integer division ~/");
+ static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind(
+ 'USE_EFFECTIVE_INTEGER_DIVISION',
+ 50,
+ "Use effective integer division ~/");
static const USE_EQ_EQ_NULL =
const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'");
static const USE_NOT_EQ_NULL =

Powered by Google App Engine
This is Rietveld 408576698