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/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 static const IMPORT_LIBRARY_PROJECT = | 81 static const IMPORT_LIBRARY_PROJECT = |
82 const FixKind('IMPORT_LIBRARY_PROJECT', 49, "Import library '{0}'"); | 82 const FixKind('IMPORT_LIBRARY_PROJECT', 49, "Import library '{0}'"); |
83 static const IMPORT_LIBRARY_SDK = | 83 static const IMPORT_LIBRARY_SDK = |
84 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); | 84 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); |
85 static const IMPORT_LIBRARY_SHOW = | 85 static const IMPORT_LIBRARY_SHOW = |
86 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); | 86 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); |
87 static const INSERT_SEMICOLON = | 87 static const INSERT_SEMICOLON = |
88 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); | 88 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); |
89 static const MAKE_CLASS_ABSTRACT = | 89 static const MAKE_CLASS_ABSTRACT = |
90 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); | 90 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); |
| 91 static const REMOVE_DEAD_CODE = |
| 92 const FixKind('REMOVE_DEAD_CODE', 50, "Remove dead code"); |
91 static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION = const FixKind( | 93 static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION = const FixKind( |
92 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION', 50, | 94 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION', 50, |
93 "Remove parameters in getter declaration"); | 95 "Remove parameters in getter declaration"); |
94 static const REMOVE_PARENTHESIS_IN_GETTER_INVOCATION = const FixKind( | 96 static const REMOVE_PARENTHESIS_IN_GETTER_INVOCATION = const FixKind( |
95 'REMOVE_PARENTHESIS_IN_GETTER_INVOCATION', 50, | 97 'REMOVE_PARENTHESIS_IN_GETTER_INVOCATION', 50, |
96 "Remove parentheses in getter invocation"); | 98 "Remove parentheses in getter invocation"); |
97 static const REMOVE_UNNECASSARY_CAST = | 99 static const REMOVE_UNNECASSARY_CAST = |
98 const FixKind('REMOVE_UNNECASSARY_CAST', 50, "Remove unnecessary cast"); | 100 const FixKind('REMOVE_UNNECASSARY_CAST', 50, "Remove unnecessary cast"); |
99 static const REMOVE_UNUSED_CATCH_CLAUSE = | 101 static const REMOVE_UNUSED_CATCH_CLAUSE = |
100 const FixKind('REMOVE_UNUSED_CATCH', 50, "Remove unused 'catch' clause"); | 102 const FixKind('REMOVE_UNUSED_CATCH', 50, "Remove unused 'catch' clause"); |
(...skipping 12 matching lines...) Expand all Loading... |
113 "Return 'Future' from 'async' function"); | 115 "Return 'Future' from 'async' function"); |
114 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant"); | 116 static const USE_CONST = const FixKind('USE_CONST', 50, "Change to constant"); |
115 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind( | 117 static const USE_EFFECTIVE_INTEGER_DIVISION = const FixKind( |
116 'USE_EFFECTIVE_INTEGER_DIVISION', 50, | 118 'USE_EFFECTIVE_INTEGER_DIVISION', 50, |
117 "Use effective integer division ~/"); | 119 "Use effective integer division ~/"); |
118 static const USE_EQ_EQ_NULL = | 120 static const USE_EQ_EQ_NULL = |
119 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'"); | 121 const FixKind('USE_EQ_EQ_NULL', 50, "Use == null instead of 'is Null'"); |
120 static const USE_NOT_EQ_NULL = | 122 static const USE_NOT_EQ_NULL = |
121 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'"); | 123 const FixKind('USE_NOT_EQ_NULL', 50, "Use != null instead of 'is! Null'"); |
122 } | 124 } |
OLD | NEW |