| OLD | NEW |
| 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/edit/fix/fix_core.dart'; | 7 import 'package:analysis_server/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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const FixKind('CREATE_FILE', 50, "Create file '{0}'"); | 78 const FixKind('CREATE_FILE', 50, "Create file '{0}'"); |
| 79 static const CREATE_FUNCTION = | 79 static const CREATE_FUNCTION = |
| 80 const FixKind('CREATE_FUNCTION', 51, "Create function '{0}'"); | 80 const FixKind('CREATE_FUNCTION', 51, "Create function '{0}'"); |
| 81 static const CREATE_GETTER = | 81 static const CREATE_GETTER = |
| 82 const FixKind('CREATE_GETTER', 50, "Create getter '{0}'"); | 82 const FixKind('CREATE_GETTER', 50, "Create getter '{0}'"); |
| 83 static const CREATE_LOCAL_VARIABLE = | 83 static const CREATE_LOCAL_VARIABLE = |
| 84 const FixKind('CREATE_LOCAL_VARIABLE', 50, "Create local variable '{0}'"); | 84 const FixKind('CREATE_LOCAL_VARIABLE', 50, "Create local variable '{0}'"); |
| 85 static const CREATE_METHOD = | 85 static const CREATE_METHOD = |
| 86 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); | 86 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); |
| 87 static const CREATE_MISSING_OVERRIDES = const FixKind( | 87 static const CREATE_MISSING_OVERRIDES = const FixKind( |
| 88 'CREATE_MISSING_OVERRIDES', 50, "Create {0} missing override(s)"); | 88 'CREATE_MISSING_OVERRIDES', 49, "Create {0} missing override(s)"); |
| 89 static const CREATE_NO_SUCH_METHOD = const FixKind( | 89 static const CREATE_NO_SUCH_METHOD = const FixKind( |
| 90 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method"); | 90 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method"); |
| 91 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX', | 91 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX', |
| 92 51, "Use imported library '{0}' with prefix '{1}'"); | 92 51, "Use imported library '{0}' with prefix '{1}'"); |
| 93 static const IMPORT_LIBRARY_PROJECT = | 93 static const IMPORT_LIBRARY_PROJECT = |
| 94 const FixKind('IMPORT_LIBRARY_PROJECT', 49, "Import library '{0}'"); | 94 const FixKind('IMPORT_LIBRARY_PROJECT', 49, "Import library '{0}'"); |
| 95 static const IMPORT_LIBRARY_SDK = | 95 static const IMPORT_LIBRARY_SDK = |
| 96 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); | 96 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); |
| 97 static const IMPORT_LIBRARY_SHOW = | 97 static const IMPORT_LIBRARY_SHOW = |
| 98 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); | 98 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant"); | 131 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant"); |
| 132 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind( | 132 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind( |
| 133 'USE_EFFECTIVE_INTEGER_DIVISION', | 133 'USE_EFFECTIVE_INTEGER_DIVISION', |
| 134 50, | 134 50, |
| 135 "Use effective integer division ~/"); | 135 "Use effective integer division ~/"); |
| 136 static const USE_EQ_EQ_NULL = | 136 static const USE_EQ_EQ_NULL = |
| 137 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'"); | 137 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'"); |
| 138 static const USE_NOT_EQ_NULL = | 138 static const USE_NOT_EQ_NULL = |
| 139 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'"); | 139 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'"); |
| 140 } | 140 } |
| OLD | NEW |