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/plugin/edit/assist/assist_core.dart'; | 7 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; |
8 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 8 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'package:analyzer/src/generated/java_engine.dart'; | 10 import 'package:analyzer/src/generated/java_engine.dart'; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 static const ADD_PART_DIRECTIVE = | 71 static const ADD_PART_DIRECTIVE = |
72 const AssistKind('ADD_PART_DIRECTIVE', 30, "Add 'part' directive"); | 72 const AssistKind('ADD_PART_DIRECTIVE', 30, "Add 'part' directive"); |
73 static const ADD_TYPE_ANNOTATION = | 73 static const ADD_TYPE_ANNOTATION = |
74 const AssistKind('ADD_TYPE_ANNOTATION', 30, "Add type annotation"); | 74 const AssistKind('ADD_TYPE_ANNOTATION', 30, "Add type annotation"); |
75 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind( | 75 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind( |
76 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable"); | 76 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable"); |
77 static const CONVERT_DOCUMENTATION_INTO_BLOCK = const AssistKind( | 77 static const CONVERT_DOCUMENTATION_INTO_BLOCK = const AssistKind( |
78 'CONVERT_DOCUMENTATION_INTO_BLOCK', | 78 'CONVERT_DOCUMENTATION_INTO_BLOCK', |
79 30, | 79 30, |
80 "Convert into block documentation comment"); | 80 "Convert into block documentation comment"); |
| 81 static const CONVERT_DOCUMENTATION_INTO_LINE = const AssistKind( |
| 82 'CONVERT_DOCUMENTATION_INTO_LINE', |
| 83 30, |
| 84 "Convert into line documentation comment"); |
81 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( | 85 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( |
82 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); | 86 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); |
83 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( | 87 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( |
84 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); | 88 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); |
85 static const CONVERT_INTO_FOR_INDEX = const AssistKind( | 89 static const CONVERT_INTO_FOR_INDEX = const AssistKind( |
86 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); | 90 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); |
87 static const CONVERT_INTO_IS_NOT = | 91 static const CONVERT_INTO_IS_NOT = |
88 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); | 92 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); |
89 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( | 93 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( |
90 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); | 94 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); | 138 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); |
135 static const SURROUND_WITH_IF = | 139 static const SURROUND_WITH_IF = |
136 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); | 140 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); |
137 static const SURROUND_WITH_TRY_CATCH = const AssistKind( | 141 static const SURROUND_WITH_TRY_CATCH = const AssistKind( |
138 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); | 142 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); |
139 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( | 143 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( |
140 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); | 144 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); |
141 static const SURROUND_WITH_WHILE = | 145 static const SURROUND_WITH_WHILE = |
142 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); | 146 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); |
143 } | 147 } |
OLD | NEW |