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

Unified Diff: dart/lib/compiler/implementation/scanner/listener.dart

Issue 10879039: Revert r10075, I'll follow up with a different solution. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | dart/tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/scanner/listener.dart
diff --git a/dart/lib/compiler/implementation/scanner/listener.dart b/dart/lib/compiler/implementation/scanner/listener.dart
index ed75f5d1b500db58e87dc3d8c576186f07ce5d81..b2fe6befd1a7fb79bdca923c289bfc52aeab9c1f 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -1312,15 +1312,8 @@ class NodeListener extends ElementListener {
Token endToken) {
NodeList elements = makeNodeList(count, beginToken, endToken, ',');
NodeList typeArguments = popNode();
- TypeAnnotation type = null;
- if (typeArguments !== null) {
- if (typeArguments.length() != 1) {
- error('Type annotations for list literal should have a single type',
- constKeyword.next);
- }
- type = typeArguments.iterator().next();
- }
- pushNode(new LiteralList(type, elements, constKeyword));
+ // TODO(ahe): Type arguments are discarded.
+ pushNode(new LiteralList(null, elements, constKeyword));
}
void handleIndexedExpression(Token openSquareBracket,
« no previous file with comments | « no previous file | dart/tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698