| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 static const IMPORT_LIBRARY_SDK = | 162 static const IMPORT_LIBRARY_SDK = |
| 163 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); | 163 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); |
| 164 static const IMPORT_LIBRARY_SHOW = | 164 static const IMPORT_LIBRARY_SHOW = |
| 165 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); | 165 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); |
| 166 static const INSERT_SEMICOLON = | 166 static const INSERT_SEMICOLON = |
| 167 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); | 167 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); |
| 168 static const MAKE_CLASS_ABSTRACT = | 168 static const MAKE_CLASS_ABSTRACT = |
| 169 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); | 169 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); |
| 170 static const REMOVE_DEAD_CODE = | 170 static const REMOVE_DEAD_CODE = |
| 171 const FixKind('REMOVE_DEAD_CODE', 50, "Remove dead code"); | 171 const FixKind('REMOVE_DEAD_CODE', 50, "Remove dead code"); |
| 172 static const MAKE_FIELD_NOT_FINAL = |
| 173 const FixKind('MAKE_FIELD_NOT_FINAL', 50, "Make field '{0}' not final"); |
| 172 static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION = const FixKind( | 174 static const REMOVE_PARAMETERS_IN_GETTER_DECLARATION = const FixKind( |
| 173 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION', | 175 'REMOVE_PARAMETERS_IN_GETTER_DECLARATION', |
| 174 50, | 176 50, |
| 175 "Remove parameters in getter declaration"); | 177 "Remove parameters in getter declaration"); |
| 176 static const REMOVE_PARENTHESIS_IN_GETTER_INVOCATION = const FixKind( | 178 static const REMOVE_PARENTHESIS_IN_GETTER_INVOCATION = const FixKind( |
| 177 'REMOVE_PARENTHESIS_IN_GETTER_INVOCATION', | 179 'REMOVE_PARENTHESIS_IN_GETTER_INVOCATION', |
| 178 50, | 180 50, |
| 179 "Remove parentheses in getter invocation"); | 181 "Remove parentheses in getter invocation"); |
| 180 static const REMOVE_UNNECESSARY_CAST = | 182 static const REMOVE_UNNECESSARY_CAST = |
| 181 const FixKind('REMOVE_UNNECESSARY_CAST', 50, "Remove unnecessary cast"); | 183 const FixKind('REMOVE_UNNECESSARY_CAST', 50, "Remove unnecessary cast"); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 @override | 225 @override |
| 224 final AnalysisError error; | 226 final AnalysisError error; |
| 225 | 227 |
| 226 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); | 228 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); |
| 227 | 229 |
| 228 FixContextImpl.from(FixContext other) | 230 FixContextImpl.from(FixContext other) |
| 229 : resourceProvider = other.resourceProvider, | 231 : resourceProvider = other.resourceProvider, |
| 230 analysisContext = other.analysisContext, | 232 analysisContext = other.analysisContext, |
| 231 error = other.error; | 233 error = other.error; |
| 232 } | 234 } |
| OLD | NEW |