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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 static const CREATE_METHOD = | 158 static const CREATE_METHOD = |
159 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); | 159 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); |
160 static const CREATE_MISSING_METHOD_CALL = | 160 static const CREATE_MISSING_METHOD_CALL = |
161 const FixKind('CREATE_MISSING_METHOD_CALL', 49, "Create method 'call'."); | 161 const FixKind('CREATE_MISSING_METHOD_CALL', 49, "Create method 'call'."); |
162 static const CREATE_MISSING_OVERRIDES = const FixKind( | 162 static const CREATE_MISSING_OVERRIDES = const FixKind( |
163 'CREATE_MISSING_OVERRIDES', 49, "Create {0} missing override(s)"); | 163 'CREATE_MISSING_OVERRIDES', 49, "Create {0} missing override(s)"); |
164 static const CREATE_NO_SUCH_METHOD = const FixKind( | 164 static const CREATE_NO_SUCH_METHOD = const FixKind( |
165 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method"); | 165 'CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method"); |
166 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX', | 166 static const IMPORT_LIBRARY_PREFIX = const FixKind('IMPORT_LIBRARY_PREFIX', |
167 51, "Use imported library '{0}' with prefix '{1}'"); | 167 51, "Use imported library '{0}' with prefix '{1}'"); |
168 static const IMPORT_LIBRARY_PROJECT = | 168 static const IMPORT_LIBRARY_PROJECT1 = |
169 const FixKind('IMPORT_LIBRARY_PROJECT', 49, "Import library '{0}'"); | 169 const FixKind('IMPORT_LIBRARY_PROJECT1', 47, "Import library '{0}'"); |
| 170 static const IMPORT_LIBRARY_PROJECT2 = |
| 171 const FixKind('IMPORT_LIBRARY_PROJECT2', 48, "Import library '{0}'"); |
| 172 static const IMPORT_LIBRARY_PROJECT3 = |
| 173 const FixKind('IMPORT_LIBRARY_PROJECT3', 49, "Import library '{0}'"); |
170 static const IMPORT_LIBRARY_SDK = | 174 static const IMPORT_LIBRARY_SDK = |
171 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); | 175 const FixKind('IMPORT_LIBRARY_SDK', 49, "Import library '{0}'"); |
172 static const IMPORT_LIBRARY_SHOW = | 176 static const IMPORT_LIBRARY_SHOW = |
173 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); | 177 const FixKind('IMPORT_LIBRARY_SHOW', 49, "Update library '{0}' import"); |
174 static const INSERT_SEMICOLON = | 178 static const INSERT_SEMICOLON = |
175 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); | 179 const FixKind('INSERT_SEMICOLON', 50, "Insert ';'"); |
176 static const LINT_ADD_OVERRIDE = | 180 static const LINT_ADD_OVERRIDE = |
177 const FixKind('LINT_ADD_OVERRIDE', 50, "Add '@override' annotation"); | 181 const FixKind('LINT_ADD_OVERRIDE', 50, "Add '@override' annotation"); |
178 static const MAKE_CLASS_ABSTRACT = | 182 static const MAKE_CLASS_ABSTRACT = |
179 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); | 183 const FixKind('MAKE_CLASS_ABSTRACT', 50, "Make class '{0}' abstract"); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 @override | 239 @override |
236 final AnalysisError error; | 240 final AnalysisError error; |
237 | 241 |
238 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); | 242 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); |
239 | 243 |
240 FixContextImpl.from(FixContext other) | 244 FixContextImpl.from(FixContext other) |
241 : resourceProvider = other.resourceProvider, | 245 : resourceProvider = other.resourceProvider, |
242 analysisContext = other.analysisContext, | 246 analysisContext = other.analysisContext, |
243 error = other.error; | 247 error = other.error; |
244 } | 248 } |
OLD | NEW |