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

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

Issue 2749283004: Add assist to convert child: to children: in Flutter new-exprs (Closed)
Patch Set: Fail fast for named args not in instance creation exprs Created 3 years, 9 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind( 76 static const ASSIGN_TO_LOCAL_VARIABLE = const AssistKind(
77 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable"); 77 'ASSIGN_TO_LOCAL_VARIABLE', 30, "Assign value to new local variable");
78 static const CONVERT_DOCUMENTATION_INTO_BLOCK = const AssistKind( 78 static const CONVERT_DOCUMENTATION_INTO_BLOCK = const AssistKind(
79 'CONVERT_DOCUMENTATION_INTO_BLOCK', 79 'CONVERT_DOCUMENTATION_INTO_BLOCK',
80 30, 80 30,
81 "Convert into block documentation comment"); 81 "Convert into block documentation comment");
82 static const CONVERT_DOCUMENTATION_INTO_LINE = const AssistKind( 82 static const CONVERT_DOCUMENTATION_INTO_LINE = const AssistKind(
83 'CONVERT_DOCUMENTATION_INTO_LINE', 83 'CONVERT_DOCUMENTATION_INTO_LINE',
84 30, 84 30,
85 "Convert into line documentation comment"); 85 "Convert into line documentation comment");
86 static const CONVERT_FLUTTER_CHILD =
87 const AssistKind('CONVERT_FLUTTER_CHILD', 30, "Convert to children:");
86 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( 88 static const CONVERT_INTO_BLOCK_BODY = const AssistKind(
87 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); 89 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body");
88 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( 90 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind(
89 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); 91 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body");
90 static const CONVERT_INTO_FOR_INDEX = const AssistKind( 92 static const CONVERT_INTO_FOR_INDEX = const AssistKind(
91 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); 93 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop");
92 static const CONVERT_INTO_FINAL_FIELD = const AssistKind( 94 static const CONVERT_INTO_FINAL_FIELD = const AssistKind(
93 'CONVERT_INTO_FINAL_FIELD', 30, "Convert into final field"); 95 'CONVERT_INTO_FINAL_FIELD', 30, "Convert into final field");
94 static const CONVERT_INTO_GETTER = 96 static const CONVERT_INTO_GETTER =
95 const AssistKind('CONVERT_INTO_GETTER', 30, "Convert into getter"); 97 const AssistKind('CONVERT_INTO_GETTER', 30, "Convert into getter");
(...skipping 16 matching lines...) Expand all
112 static const INTRODUCE_LOCAL_CAST_TYPE = const AssistKind( 114 static const INTRODUCE_LOCAL_CAST_TYPE = const AssistKind(
113 'INTRODUCE_LOCAL_CAST_TYPE', 30, "Introduce new local with tested type"); 115 'INTRODUCE_LOCAL_CAST_TYPE', 30, "Introduce new local with tested type");
114 static const INVERT_IF_STATEMENT = 116 static const INVERT_IF_STATEMENT =
115 const AssistKind('INVERT_IF_STATEMENT', 30, "Invert 'if' statement"); 117 const AssistKind('INVERT_IF_STATEMENT', 30, "Invert 'if' statement");
116 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,
117 "Join 'if' statement with inner 'if' statement"); 119 "Join 'if' statement with inner 'if' statement");
118 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,
119 "Join 'if' statement with outer 'if' statement"); 121 "Join 'if' statement with outer 'if' statement");
120 static const JOIN_VARIABLE_DECLARATION = const AssistKind( 122 static const JOIN_VARIABLE_DECLARATION = const AssistKind(
121 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration"); 123 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration");
122 static const MOVE_FLUTTER_WIDGET_DOWN = const AssistKind( 124 static const MOVE_FLUTTER_WIDGET_DOWN =
123 "MOVE_FLUTTER_WIDGET_DOWN", 30, "Move widget down"); 125 const AssistKind("MOVE_FLUTTER_WIDGET_DOWN", 30, "Move widget down");
124 static const MOVE_FLUTTER_WIDGET_UP = const AssistKind( 126 static const MOVE_FLUTTER_WIDGET_UP =
125 "MOVE_FLUTTER_WIDGET_UP", 30, "Move widget up"); 127 const AssistKind("MOVE_FLUTTER_WIDGET_UP", 30, "Move widget up");
126 static const REPARENT_FLUTTER_LIST = const AssistKind( 128 static const REPARENT_FLUTTER_LIST = const AssistKind(
127 "REPARENT_FLUTTER_LIST", 30, "Wrap widget list with new widget"); 129 "REPARENT_FLUTTER_LIST", 30, "Wrap widget list with new widget");
128 static const REPARENT_FLUTTER_WIDGET = const AssistKind( 130 static const REPARENT_FLUTTER_WIDGET = const AssistKind(
129 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget"); 131 "REPARENT_FLUTTER_WIDGET", 30, "Wrap new-expression with new widget");
130 static const REMOVE_TYPE_ANNOTATION = 132 static const REMOVE_TYPE_ANNOTATION =
131 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); 133 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation");
132 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( 134 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind(
133 'REPLACE_CONDITIONAL_WITH_IF_ELSE', 135 'REPLACE_CONDITIONAL_WITH_IF_ELSE',
134 30, 136 30,
135 "Replace conditional with 'if-else'"); 137 "Replace conditional with 'if-else'");
(...skipping 15 matching lines...) Expand all
151 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 153 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
152 static const SURROUND_WITH_IF = 154 static const SURROUND_WITH_IF =
153 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 155 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
154 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 156 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
155 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 157 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
156 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 158 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
157 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 159 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
158 static const SURROUND_WITH_WHILE = 160 static const SURROUND_WITH_WHILE =
159 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 161 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
160 } 162 }
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