| 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.assist; | 5 library services.correction.assist; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol.dart'; | 7 import 'package:analysis_server/src/protocol.dart'; |
| 8 import 'package:analysis_server/src/services/correction/assist_internal.dart'; | 8 import 'package:analysis_server/src/services/correction/assist_internal.dart'; |
| 9 import 'package:analyzer/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 static const ADD_PART_DIRECTIVE = | 44 static const ADD_PART_DIRECTIVE = |
| 45 const AssistKind('ADD_PART_DIRECTIVE', 30, "Add 'part' directive"); | 45 const AssistKind('ADD_PART_DIRECTIVE', 30, "Add 'part' directive"); |
| 46 static const ADD_TYPE_ANNOTATION = | 46 static const ADD_TYPE_ANNOTATION = |
| 47 const AssistKind('ADD_TYPE_ANNOTATION', 30, "Add type annotation"); | 47 const AssistKind('ADD_TYPE_ANNOTATION', 30, "Add type annotation"); |
| 48 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind( | 48 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind( |
| 49 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable"); | 49 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable"); |
| 50 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( | 50 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( |
| 51 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); | 51 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); |
| 52 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( | 52 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( |
| 53 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); | 53 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); |
| 54 static const CONVERT_INTO_FOR_INDEX = const AssistKind( |
| 55 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); |
| 54 static const CONVERT_INTO_IS_NOT = | 56 static const CONVERT_INTO_IS_NOT = |
| 55 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); | 57 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); |
| 56 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( | 58 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( |
| 57 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); | 59 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); |
| 58 static const EXCHANGE_OPERANDS = | 60 static const EXCHANGE_OPERANDS = |
| 59 const AssistKind('EXCHANGE_OPERANDS', 30, "Exchange operands"); | 61 const AssistKind('EXCHANGE_OPERANDS', 30, "Exchange operands"); |
| 60 static const EXTRACT_CLASS = | 62 static const EXTRACT_CLASS = |
| 61 const AssistKind('EXTRACT_CLASS', 30, "Extract class into file '{0}'"); | 63 const AssistKind('EXTRACT_CLASS', 30, "Extract class into file '{0}'"); |
| 62 static const IMPORT_ADD_SHOW = | 64 static const IMPORT_ADD_SHOW = |
| 63 const AssistKind('IMPORT_ADD_SHOW', 30, "Add explicit 'show' combinator"); | 65 const AssistKind('IMPORT_ADD_SHOW', 30, "Add explicit 'show' combinator"); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 104 |
| 103 final name; | 105 final name; |
| 104 final int relevance; | 106 final int relevance; |
| 105 final String message; | 107 final String message; |
| 106 | 108 |
| 107 const AssistKind(this.name, this.relevance, this.message); | 109 const AssistKind(this.name, this.relevance, this.message); |
| 108 | 110 |
| 109 @override | 111 @override |
| 110 String toString() => name; | 112 String toString() => name; |
| 111 } | 113 } |
| OLD | NEW |