| 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/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'; |
| 11 import 'package:analyzer/src/generated/error.dart'; | 11 import 'package:analyzer/src/generated/error.dart'; |
| 12 import 'package:analyzer/src/generated/java_engine.dart'; | 12 import 'package:analyzer/src/generated/java_engine.dart'; |
| 13 import 'package:analyzer/src/generated/parser.dart'; | 13 import 'package:analyzer/src/generated/parser.dart'; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Compute and return the fixes available for the given [error]. The error was | 16 * Compute and return the fixes available for the given [error]. The error was |
| 17 * reported after it's source was analyzed in the given [context]. The [plugin] | 17 * reported after it's source was analyzed in the given [context]. The [plugin] |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant"); | 190 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant"); |
| 191 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind( | 191 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind( |
| 192 'USE_EFFECTIVE_INTEGER_DIVISION', | 192 'USE_EFFECTIVE_INTEGER_DIVISION', |
| 193 50, | 193 50, |
| 194 "Use effective integer division ~/"); | 194 "Use effective integer division ~/"); |
| 195 static const USE_EQ_EQ_NULL = | 195 static const USE_EQ_EQ_NULL = |
| 196 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'"); | 196 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'"); |
| 197 static const USE_NOT_EQ_NULL = | 197 static const USE_NOT_EQ_NULL = |
| 198 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'"); | 198 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'"); |
| 199 } | 199 } |
| OLD | NEW |