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

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

Issue 2701563003: Add assist to reparent Flutter widget (Closed)
Patch Set: Address review comments 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
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_WIDGET = const AssistKind(
123 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget");
122 static const REMOVE_TYPE_ANNOTATION = 124 static const REMOVE_TYPE_ANNOTATION =
123 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); 125 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation");
124 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( 126 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind(
125 'REPLACE_CONDITIONAL_WITH_IF_ELSE', 127 'REPLACE_CONDITIONAL_WITH_IF_ELSE',
126 30, 128 30,
127 "Replace conditional with 'if-else'"); 129 "Replace conditional with 'if-else'");
128 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind( 130 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind(
129 'REPLACE_IF_ELSE_WITH_CONDITIONAL', 131 'REPLACE_IF_ELSE_WITH_CONDITIONAL',
130 30, 132 30,
131 "Replace 'if-else' with conditional ('c ? x : y')"); 133 "Replace 'if-else' with conditional ('c ? x : y')");
(...skipping 11 matching lines...) Expand all
143 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 145 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
144 static const SURROUND_WITH_IF = 146 static const SURROUND_WITH_IF =
145 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 147 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
146 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 148 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
147 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 149 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
148 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 150 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
149 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 151 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
150 static const SURROUND_WITH_WHILE = 152 static const SURROUND_WITH_WHILE =
151 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 153 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
152 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698