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

Unified Diff: pkg/analyzer/lib/src/generated/constant.dart

Issue 677303002: Remove unnecessary List creation (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/analyzer/lib/src/generated/constant.dart
diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart
index 23dec9e39e5d3102509ff25020007ff2c5fa544f..5f6978e1b8f30624b73ed41ae0a76445ee73e79c 100644
--- a/pkg/analyzer/lib/src/generated/constant.dart
+++ b/pkg/analyzer/lib/src/generated/constant.dart
@@ -1195,7 +1195,7 @@ class ConstantVisitor extends UnifyingAstVisitor<DartObjectImpl> {
}
}
InterfaceType listType = _typeProvider.listType.substitute4([elementType]);
- return new DartObjectImpl(listType, new ListState(new List.from(elements)));
+ return new DartObjectImpl(listType, new ListState(elements));
}
@override

Powered by Google App Engine
This is Rietveld 408576698