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

Unified Diff: sdk/lib/_internal/compiler/implementation/js/nodes.dart

Issue 11413136: Revert "Generate native class metadata as a JavaScript AST." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js/nodes.dart b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
index 8e1256596fbdd346aaf30d83ad649a1186269d96..18139b29fd32709ad4cf4a49af5f6e378f4e878b 100644
--- a/sdk/lib/_internal/compiler/implementation/js/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/js/nodes.dart
@@ -769,9 +769,6 @@ class ArrayInitializer extends Expression {
ArrayInitializer(this.length, this.elements);
- factory ArrayInitializer.from(List<Expression> expressions) =>
- new ArrayInitializer(expressions.length, _convert(expressions));
-
accept(NodeVisitor visitor) => visitor.visitArrayInitializer(this);
void visitChildren(NodeVisitor visitor) {
@@ -779,12 +776,6 @@ class ArrayInitializer extends Expression {
}
int get precedenceLevel => PRIMARY;
-
- static List<ArrayElement> _convert(List<Expression> expressions) {
- int index = 0;
- return expressions.map(
- (expression) => new ArrayElement(index++, expression));
- }
}
/**
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698