Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/assist.dart

Issue 2701023002: Add assist to reparent list of Flutter widgets (Closed)
Patch Set: Change menu label Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/assist_internal.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 REPARENT_FLUTTER_LIST = const AssistKind(
123 "REPARENT_FLUTTER_LIST", 30, "Wrap widget list with new widget");
122 static const REPARENT_FLUTTER_WIDGET = const AssistKind( 124 static const REPARENT_FLUTTER_WIDGET = const AssistKind(
123 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget"); 125 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget");
124 static const REMOVE_TYPE_ANNOTATION = 126 static const REMOVE_TYPE_ANNOTATION =
125 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); 127 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation");
126 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( 128 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind(
127 'REPLACE_CONDITIONAL_WITH_IF_ELSE', 129 'REPLACE_CONDITIONAL_WITH_IF_ELSE',
128 30, 130 30,
129 "Replace conditional with 'if-else'"); 131 "Replace conditional with 'if-else'");
130 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind( 132 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind(
131 'REPLACE_IF_ELSE_WITH_CONDITIONAL', 133 'REPLACE_IF_ELSE_WITH_CONDITIONAL',
(...skipping 13 matching lines...) Expand all
145 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 147 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
146 static const SURROUND_WITH_IF = 148 static const SURROUND_WITH_IF =
147 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 149 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
148 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 150 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
149 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 151 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
150 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 152 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
151 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 153 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
152 static const SURROUND_WITH_WHILE = 154 static const SURROUND_WITH_WHILE =
153 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 155 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
154 } 156 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/assist_internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698