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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 static const INTRODUCE_LOCAL_CAST_TYPE = const AssistKind( | 112 static const INTRODUCE_LOCAL_CAST_TYPE = const AssistKind( |
113 'INTRODUCE_LOCAL_CAST_TYPE', 30, "Introduce new local with tested type"); | 113 'INTRODUCE_LOCAL_CAST_TYPE', 30, "Introduce new local with tested type"); |
114 static const INVERT_IF_STATEMENT = | 114 static const INVERT_IF_STATEMENT = |
115 const AssistKind('INVERT_IF_STATEMENT', 30, "Invert 'if' statement"); | 115 const AssistKind('INVERT_IF_STATEMENT', 30, "Invert 'if' statement"); |
116 static const JOIN_IF_WITH_INNER = const AssistKind('JOIN_IF_WITH_INNER', 30, | 116 static const JOIN_IF_WITH_INNER = const AssistKind('JOIN_IF_WITH_INNER', 30, |
117 "Join 'if' statement with inner 'if' statement"); | 117 "Join 'if' statement with inner 'if' statement"); |
118 static const JOIN_IF_WITH_OUTER = const AssistKind('JOIN_IF_WITH_OUTER', 30, | 118 static const JOIN_IF_WITH_OUTER = const AssistKind('JOIN_IF_WITH_OUTER', 30, |
119 "Join 'if' statement with outer 'if' statement"); | 119 "Join 'if' statement with outer 'if' statement"); |
120 static const JOIN_VARIABLE_DECLARATION = const AssistKind( | 120 static const JOIN_VARIABLE_DECLARATION = const AssistKind( |
121 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration"); | 121 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration"); |
122 static const MOVE_FLUTTER_WIDGET_DOWN = const AssistKind( | 122 static const MOVE_FLUTTER_WIDGET_DOWN = |
123 "MOVE_FLUTTER_WIDGET_DOWN", 30, "Move widget down"); | 123 const AssistKind("MOVE_FLUTTER_WIDGET_DOWN", 30, "Move widget down"); |
124 static const MOVE_FLUTTER_WIDGET_UP = const AssistKind( | 124 static const MOVE_FLUTTER_WIDGET_UP = |
125 "MOVE_FLUTTER_WIDGET_UP", 30, "Move widget up"); | 125 const AssistKind("MOVE_FLUTTER_WIDGET_UP", 30, "Move widget up"); |
126 static const REPARENT_FLUTTER_LIST = const AssistKind( | 126 static const REPARENT_FLUTTER_LIST = const AssistKind( |
127 "REPARENT_FLUTTER_LIST", 30, "Wrap widget list with new widget"); | 127 "REPARENT_FLUTTER_LIST", 30, "Wrap widget list with new widget"); |
128 static const REPARENT_FLUTTER_WIDGET = const AssistKind( | 128 static const REPARENT_FLUTTER_WIDGET = const AssistKind( |
129 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget"); | 129 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget"); |
130 static const REMOVE_TYPE_ANNOTATION = | 130 static const REMOVE_TYPE_ANNOTATION = |
131 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); | 131 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); |
132 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( | 132 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( |
133 'REPLACE_CONDITIONAL_WITH_IF_ELSE', | 133 'REPLACE_CONDITIONAL_WITH_IF_ELSE', |
134 30, | 134 30, |
135 "Replace conditional with 'if-else'"); | 135 "Replace conditional with 'if-else'"); |
(...skipping 15 matching lines...) Expand all Loading... |
151 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); | 151 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); |
152 static const SURROUND_WITH_IF = | 152 static const SURROUND_WITH_IF = |
153 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); | 153 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); |
154 static const SURROUND_WITH_TRY_CATCH = const AssistKind( | 154 static const SURROUND_WITH_TRY_CATCH = const AssistKind( |
155 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); | 155 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); |
156 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( | 156 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( |
157 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); | 157 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); |
158 static const SURROUND_WITH_WHILE = | 158 static const SURROUND_WITH_WHILE = |
159 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); | 159 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); |
160 } | 160 } |
OLD | NEW |