| 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/correction/fix_internal.dart'; | 8 import 'package:analysis_server/src/services/correction/fix_internal.dart'; |
| 9 import 'package:analysis_server/src/services/search/search_engine.dart'; | 9 import 'package:analysis_server/src/services/search/search_engine.dart'; |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static const CREATE_CONSTRUCTOR_SUPER = const FixKind( | 61 static const CREATE_CONSTRUCTOR_SUPER = const FixKind( |
| 62 'CREATE_CONSTRUCTOR_SUPER', | 62 'CREATE_CONSTRUCTOR_SUPER', |
| 63 50, | 63 50, |
| 64 "Create constructor to call {0}"); | 64 "Create constructor to call {0}"); |
| 65 static const CREATE_FIELD = | 65 static const CREATE_FIELD = |
| 66 const FixKind('CREATE_FIELD', 50, "Create field '{0}'"); | 66 const FixKind('CREATE_FIELD', 50, "Create field '{0}'"); |
| 67 static const CREATE_FILE = | 67 static const CREATE_FILE = |
| 68 const FixKind('CREATE_FILE', 50, "Create file '{0}'"); | 68 const FixKind('CREATE_FILE', 50, "Create file '{0}'"); |
| 69 static const CREATE_FUNCTION = | 69 static const CREATE_FUNCTION = |
| 70 const FixKind('CREATE_FUNCTION', 49, "Create function '{0}'"); | 70 const FixKind('CREATE_FUNCTION', 49, "Create function '{0}'"); |
| 71 static const CREATE_LOCAL_VARIABLE = |
| 72 const FixKind('CREATE_LOCAL_VARIABLE', 50, "Create local variable '{0}'"); |
| 71 static const CREATE_METHOD = | 73 static const CREATE_METHOD = |
| 72 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); | 74 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); |
| 73 static const CREATE_MISSING_OVERRIDES = const FixKind( | 75 static const CREATE_MISSING_OVERRIDES = const FixKind( |
| 74 'CREATE_MISSING_OVERRIDES', | 76 'CREATE_MISSING_OVERRIDES', |
| 75 50, | 77 50, |
| 76 "Create {0} missing override(s)"); | 78 "Create {0} missing override(s)"); |
| 77 static const CREATE_NO_SUCH_METHOD = | 79 static const CREATE_NO_SUCH_METHOD = |
| 78 const FixKind('CREATE_NO_SUCH_METHOD', 49, "Create 'noSuchMethod' method")
; | 80 const FixKind('CREATE_NO_SUCH_METHOD', 49, "Create 'noSuchMethod' method")
; |
| 79 static const IMPORT_LIBRARY_PREFIX = const FixKind( | 81 static const IMPORT_LIBRARY_PREFIX = const FixKind( |
| 80 'IMPORT_LIBRARY_PREFIX', | 82 'IMPORT_LIBRARY_PREFIX', |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 124 |
| 123 final name; | 125 final name; |
| 124 final int relevance; | 126 final int relevance; |
| 125 final String message; | 127 final String message; |
| 126 | 128 |
| 127 const FixKind(this.name, this.relevance, this.message); | 129 const FixKind(this.name, this.relevance, this.message); |
| 128 | 130 |
| 129 @override | 131 @override |
| 130 String toString() => name; | 132 String toString() => name; |
| 131 } | 133 } |
| OLD | NEW |