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

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

Issue 712083003: Create fewer unnecessary lists (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/element_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index c7651ce56369e1a9ee7b227b0b27e81f3353c467..db3295d2877824774edacbbbfbb05078166a5c7e 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -472,7 +472,7 @@ abstract class AngularPropertyElement implements AngularElement {
/**
* An empty array of property elements.
*/
- static final List<AngularPropertyElement> EMPTY_ARRAY = [];
+ static final List<AngularPropertyElement> EMPTY_ARRAY = <AngularPropertyElement>[];
/**
* Returns the field this property is mapped to.
@@ -596,7 +596,7 @@ abstract class AngularScopePropertyElement implements AngularElement {
/**
* An empty array of scope property elements.
*/
- static final List<AngularScopePropertyElement> EMPTY_ARRAY = [];
+ static final List<AngularScopePropertyElement> EMPTY_ARRAY = <AngularScopePropertyElement>[];
/**
* Returns the type of this property, not `null`, maybe <code>dynamic</code>.
@@ -9107,7 +9107,7 @@ abstract class NamespaceCombinator {
/**
* An empty array of namespace combinators.
*/
- static final List<NamespaceCombinator> EMPTY_ARRAY = new List<NamespaceCombinator>(0);
+ static const List<NamespaceCombinator> EMPTY_ARRAY = const <NamespaceCombinator>[];
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/element_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698