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

Unified Diff: pkg/analyzer/lib/src/generated/ast.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 | « no previous file | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index 5cc32198775cdf39b930c43d09da39eb68b7c753..790a9dc06e3285cb55d08e7e7450cb426dbfdecf 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -6908,9 +6908,9 @@ class ExportDirective extends NamespaceDirective {
*/
abstract class Expression extends AstNode {
/**
- * An empty array of expressions.
+ * An empty list of expressions.
*/
- static List<Expression> EMPTY_ARRAY = new List<Expression>(0);
+ static const List<Expression> EMPTY_ARRAY = const <Expression>[];
/**
* The static type of this expression, or `null` if the AST structure has not been resolved.
@@ -20161,7 +20161,7 @@ class NodeList<E extends AstNode> extends Object with ListMixin<E> {
/**
* The elements contained in the list.
*/
- List<E> _elements = <E> [];
+ List<E> _elements = <E>[];
/**
* Initialize a newly created list of nodes to be empty.
@@ -20257,7 +20257,7 @@ class NodeList<E extends AstNode> extends Object with ListMixin<E> {
_elements[index] = node;
}
void clear() {
- _elements = <E> [];
+ _elements = <E>[];
}
int get length => _elements.length;
void set length(int value) {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698