| 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 services.correction.fix; | 5 library services.correction.fix; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol.dart' show SourceChange; | 7 import 'package:analysis_server/src/protocol.dart' show SourceChange; |
| 8 import 'package:analysis_server/src/services/search/search_engine.dart'; | 8 import 'package:analysis_server/src/services/search/search_engine.dart'; |
| 9 import 'package:analysis_server/src/services/correction/fix_internal.dart'; | 9 import 'package:analysis_server/src/services/correction/fix_internal.dart'; |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const FixKind('CREATE_CLASS', 50, "Create class '{0}'"); | 63 const FixKind('CREATE_CLASS', 50, "Create class '{0}'"); |
| 64 static const CREATE_CONSTRUCTOR = | 64 static const CREATE_CONSTRUCTOR = |
| 65 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'"); | 65 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'"); |
| 66 static const CREATE_CONSTRUCTOR_SUPER = | 66 static const CREATE_CONSTRUCTOR_SUPER = |
| 67 const FixKind('CREATE_CONSTRUCTOR_SUPER', 50, "Create constructor to call
{0}"); | 67 const FixKind('CREATE_CONSTRUCTOR_SUPER', 50, "Create constructor to call
{0}"); |
| 68 static const CREATE_FUNCTION = | 68 static const CREATE_FUNCTION = |
| 69 const FixKind('CREATE_FUNCTION', 49, "Create function '{0}'"); | 69 const FixKind('CREATE_FUNCTION', 49, "Create function '{0}'"); |
| 70 static const CREATE_METHOD = | 70 static const CREATE_METHOD = |
| 71 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); | 71 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); |
| 72 static const CREATE_MISSING_OVERRIDES = | 72 static const CREATE_MISSING_OVERRIDES = |
| 73 const FixKind('CREATE_MISSING_OVERRIDES', 50, "Create %d missing override(
s)"); | 73 const FixKind('CREATE_MISSING_OVERRIDES', 50, "Create {0} missing override
(s)"); |
| 74 static const CREATE_NO_SUCH_METHOD = | 74 static const CREATE_NO_SUCH_METHOD = |
| 75 const FixKind('CREATE_NO_SUCH_METHOD', 49, "Create 'noSuchMethod' method")
; | 75 const FixKind('CREATE_NO_SUCH_METHOD', 49, "Create 'noSuchMethod' method")
; |
| 76 static const CREATE_PART = | 76 static const CREATE_PART = |
| 77 const FixKind('CREATE_PART', 50, "Create part '{0}'"); | 77 const FixKind('CREATE_PART', 50, "Create part '{0}'"); |
| 78 static const IMPORT_LIBRARY_PREFIX = | 78 static const IMPORT_LIBRARY_PREFIX = |
| 79 const FixKind( | 79 const FixKind( |
| 80 'IMPORT_LIBRARY_PREFIX', | 80 'IMPORT_LIBRARY_PREFIX', |
| 81 51, | 81 51, |
| 82 "Use imported library '{0}' with prefix '{1}'"); | 82 "Use imported library '{0}' with prefix '{1}'"); |
| 83 static const IMPORT_LIBRARY_PROJECT = | 83 static const IMPORT_LIBRARY_PROJECT = |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 final name; | 124 final name; |
| 125 final int relevance; | 125 final int relevance; |
| 126 final String message; | 126 final String message; |
| 127 | 127 |
| 128 const FixKind(this.name, this.relevance, this.message); | 128 const FixKind(this.name, this.relevance, this.message); |
| 129 | 129 |
| 130 @override | 130 @override |
| 131 String toString() => name; | 131 String toString() => name; |
| 132 } | 132 } |
| OLD | NEW |