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

Unified Diff: pkg/analysis_server/lib/src/services/correction/assist_internal.dart

Issue 482573004: Change analysis server protocol to omit empty lists when optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/correction/assist_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
index 186148ebb7165d0c59e3e1373ad91ae5fec2f1ed..ca1096f039453af3527420d06db5280dab6c6aad 100644
--- a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
@@ -127,7 +127,7 @@ class AssistProcessor {
if (assistFile == null) {
assistFile = file;
}
- SourceFileEdit fileEdit = new SourceFileEdit(file, <SourceEdit>[]);
+ SourceFileEdit fileEdit = new SourceFileEdit(file);
fileEdit.addAll(edits);
// prepare Change
String message = formatList(kind.message, args);

Powered by Google App Engine
This is Rietveld 408576698