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 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; | 9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; |
10 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 static const JOIN_IF_WITH_INNER = const AssistKind('JOIN_IF_WITH_INNER', 30, | 118 static const JOIN_IF_WITH_INNER = const AssistKind('JOIN_IF_WITH_INNER', 30, |
119 "Join 'if' statement with inner 'if' statement"); | 119 "Join 'if' statement with inner 'if' statement"); |
120 static const JOIN_IF_WITH_OUTER = const AssistKind('JOIN_IF_WITH_OUTER', 30, | 120 static const JOIN_IF_WITH_OUTER = const AssistKind('JOIN_IF_WITH_OUTER', 30, |
121 "Join 'if' statement with outer 'if' statement"); | 121 "Join 'if' statement with outer 'if' statement"); |
122 static const JOIN_VARIABLE_DECLARATION = const AssistKind( | 122 static const JOIN_VARIABLE_DECLARATION = const AssistKind( |
123 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration"); | 123 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration"); |
124 static const MOVE_FLUTTER_WIDGET_DOWN = | 124 static const MOVE_FLUTTER_WIDGET_DOWN = |
125 const AssistKind("MOVE_FLUTTER_WIDGET_DOWN", 30, "Move widget down"); | 125 const AssistKind("MOVE_FLUTTER_WIDGET_DOWN", 30, "Move widget down"); |
126 static const MOVE_FLUTTER_WIDGET_UP = | 126 static const MOVE_FLUTTER_WIDGET_UP = |
127 const AssistKind("MOVE_FLUTTER_WIDGET_UP", 30, "Move widget up"); | 127 const AssistKind("MOVE_FLUTTER_WIDGET_UP", 30, "Move widget up"); |
128 static const REPARENT_FLUTTER_LIST = const AssistKind( | 128 static const REPARENT_FLUTTER_LIST = |
129 "REPARENT_FLUTTER_LIST", 30, "Wrap widget list with new widget"); | 129 const AssistKind("REPARENT_FLUTTER_LIST", 30, "Wrap with new widget"); |
130 static const REPARENT_FLUTTER_WIDGET = const AssistKind( | 130 static const REPARENT_FLUTTER_WIDGET = |
131 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget"); | 131 const AssistKind("REPARENT_FLUTTER_WIDGET", 30, "Wrap with new widget"); |
132 static const REMOVE_TYPE_ANNOTATION = | 132 static const REMOVE_TYPE_ANNOTATION = |
133 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); | 133 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); |
134 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( | 134 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( |
135 'REPLACE_CONDITIONAL_WITH_IF_ELSE', | 135 'REPLACE_CONDITIONAL_WITH_IF_ELSE', |
136 30, | 136 30, |
137 "Replace conditional with 'if-else'"); | 137 "Replace conditional with 'if-else'"); |
138 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind( | 138 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind( |
139 'REPLACE_IF_ELSE_WITH_CONDITIONAL', | 139 'REPLACE_IF_ELSE_WITH_CONDITIONAL', |
140 30, | 140 30, |
141 "Replace 'if-else' with conditional ('c ? x : y')"); | 141 "Replace 'if-else' with conditional ('c ? x : y')"); |
(...skipping 11 matching lines...) Expand all Loading... |
153 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); | 153 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); |
154 static const SURROUND_WITH_IF = | 154 static const SURROUND_WITH_IF = |
155 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); | 155 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); |
156 static const SURROUND_WITH_TRY_CATCH = const AssistKind( | 156 static const SURROUND_WITH_TRY_CATCH = const AssistKind( |
157 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); | 157 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); |
158 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( | 158 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( |
159 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); | 159 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); |
160 static const SURROUND_WITH_WHILE = | 160 static const SURROUND_WITH_WHILE = |
161 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); | 161 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); |
162 } | 162 } |
OLD | NEW |