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 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; | 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; |
10 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 static const CREATE_GETTER = | 151 static const CREATE_GETTER = |
152 const FixKind('CREATE_GETTER', 50, "Create getter '{0}'"); | 152 const FixKind('CREATE_GETTER', 50, "Create getter '{0}'"); |
153 static const CREATE_LOCAL_VARIABLE = | 153 static const CREATE_LOCAL_VARIABLE = |
154 const FixKind('CREATE_LOCAL_VARIABLE', 50, "Create local variable '{0}'"); | 154 const FixKind('CREATE_LOCAL_VARIABLE', 50, "Create local variable '{0}'"); |
155 static const CREATE_METHOD = | 155 static const CREATE_METHOD = |
156 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); | 156 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); |
157 static const CREATE_MISSING_OVERRIDES = const FixKind( | 157 static const CREATE_MISSING_OVERRIDES = const FixKind( |
158 'CREATE_MISSING_OVERRIDES', 49, "Create {0} missing override(s)"); | 158 'CREATE_MISSING_OVERRIDES', 49, "Create {0} missing override(s)"); |
159 static const CREATE_NO_SUCH_METHOD = const FixKind( | 159 static const CREATE_NO_SUCH_METHOD = const FixKind( |
160 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method"); | 160 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method"); |
| 161 static const IGNORE_ERROR = |
| 162 const FixKind('IGNORE_ERROR', 60, "Ignore error with code '{0}'"); |
161 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX', | 163 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX', |
162 51, "Use imported library '{0}' with prefix '{1}'"); | 164 51, "Use imported library '{0}' with prefix '{1}'"); |
163 static const IMPORT_LIBRARY_PROJECT = | 165 static const IMPORT_LIBRARY_PROJECT = |
164 const FixKind('IMPORT_LIBRARY_PROJECT', 49, "Import library '{0}'"); | 166 const FixKind('IMPORT_LIBRARY_PROJECT', 49, "Import library '{0}'"); |
165 static const IMPORT_LIBRARY_SDK = | 167 static const IMPORT_LIBRARY_SDK = |
166 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); | 168 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); |
167 static const IMPORT_LIBRARY_SHOW = | 169 static const IMPORT_LIBRARY_SHOW = |
168 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); | 170 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); |
169 static const INSERT_SEMICOLON = | 171 static const INSERT_SEMICOLON = |
170 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); | 172 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 @override | 232 @override |
231 final AnalysisError error; | 233 final AnalysisError error; |
232 | 234 |
233 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); | 235 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); |
234 | 236 |
235 FixContextImpl.from(FixContext other) | 237 FixContextImpl.from(FixContext other) |
236 : resourceProvider = other.resourceProvider, | 238 : resourceProvider = other.resourceProvider, |
237 analysisContext = other.analysisContext, | 239 analysisContext = other.analysisContext, |
238 error = other.error; | 240 error = other.error; |
239 } | 241 } |
OLD | NEW |