| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 'ADD_PACKAGE_DEPENDENCY', 50, "Add dependency on package '{0}'"); | 120 'ADD_PACKAGE_DEPENDENCY', 50, "Add dependency on package '{0}'"); |
| 121 static const ADD_PART_OF = | 121 static const ADD_PART_OF = |
| 122 const FixKind('ADD_PART_OF', 50, "Add 'part of' directive"); | 122 const FixKind('ADD_PART_OF', 50, "Add 'part of' directive"); |
| 123 static const ADD_SUPER_CONSTRUCTOR_INVOCATION = const FixKind( | 123 static const ADD_SUPER_CONSTRUCTOR_INVOCATION = const FixKind( |
| 124 'ADD_SUPER_CONSTRUCTOR_INVOCATION', | 124 'ADD_SUPER_CONSTRUCTOR_INVOCATION', |
| 125 50, | 125 50, |
| 126 "Add super constructor {0} invocation"); | 126 "Add super constructor {0} invocation"); |
| 127 static const CHANGE_TO = const FixKind('CHANGE_TO', 49, "Change to '{0}'"); | 127 static const CHANGE_TO = const FixKind('CHANGE_TO', 49, "Change to '{0}'"); |
| 128 static const CHANGE_TO_STATIC_ACCESS = const FixKind( | 128 static const CHANGE_TO_STATIC_ACCESS = const FixKind( |
| 129 'CHANGE_TO_STATIC_ACCESS', 50, "Change access to static using '{0}'"); | 129 'CHANGE_TO_STATIC_ACCESS', 50, "Change access to static using '{0}'"); |
| 130 static const CHANGE_TYPE_ANNOTATION = const FixKind( |
| 131 'CHANGE_TYPE_ANNOTATION', 50, "Change '{0}' to '{1}' type annotation"); |
| 130 static const CREATE_CLASS = | 132 static const CREATE_CLASS = |
| 131 const FixKind('CREATE_CLASS', 50, "Create class '{0}'"); | 133 const FixKind('CREATE_CLASS', 50, "Create class '{0}'"); |
| 132 static const CREATE_CONSTRUCTOR = | 134 static const CREATE_CONSTRUCTOR = |
| 133 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'"); | 135 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'"); |
| 134 static const CREATE_CONSTRUCTOR_FOR_FINAL_FIELDS = const FixKind( | 136 static const CREATE_CONSTRUCTOR_FOR_FINAL_FIELDS = const FixKind( |
| 135 'CREATE_CONSTRUCTOR_FOR_FINAL_FIELDS', | 137 'CREATE_CONSTRUCTOR_FOR_FINAL_FIELDS', |
| 136 50, | 138 50, |
| 137 "Create constructor for final fields"); | 139 "Create constructor for final fields"); |
| 138 static const CREATE_CONSTRUCTOR_SUPER = const FixKind( | 140 static const CREATE_CONSTRUCTOR_SUPER = const FixKind( |
| 139 'CREATE_CONSTRUCTOR_SUPER', 50, "Create constructor to call {0}"); | 141 'CREATE_CONSTRUCTOR_SUPER', 50, "Create constructor to call {0}"); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 @override | 223 @override |
| 222 final AnalysisError error; | 224 final AnalysisError error; |
| 223 | 225 |
| 224 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); | 226 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); |
| 225 | 227 |
| 226 FixContextImpl.from(FixContext other) | 228 FixContextImpl.from(FixContext other) |
| 227 : resourceProvider = other.resourceProvider, | 229 : resourceProvider = other.resourceProvider, |
| 228 analysisContext = other.analysisContext, | 230 analysisContext = other.analysisContext, |
| 229 error = other.error; | 231 error = other.error; |
| 230 } | 232 } |
| OLD | NEW |