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

Unified Diff: pkg/analysis_server/lib/src/protocol.dart

Issue 625413002: Remove special list behavior in analysis server protocol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/protocol.dart
diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart
index 212c1a5bdd6b13a5a3a6ded90de45a49c3951ffd..196647465a43a6fefa179529fc354ea78e5e40f3 100644
--- a/pkg/analysis_server/lib/src/protocol.dart
+++ b/pkg/analysis_server/lib/src/protocol.dart
@@ -293,6 +293,12 @@ SourceFileEdit _getChangeFileEdit(SourceChange change, String file) {
* list elements.
*/
bool _listEqual(List listA, List listB, bool itemEqual(a, b)) {
+ if (listA == null) {
+ return listB == null;
+ }
+ if (listB == null) {
+ return false;
+ }
if (listA.length != listB.length) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698