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

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

Issue 10880026: Record literal list type arguments and report errors when there are too many. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated dart2dart status 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 | « dart/lib/compiler/implementation/resolver.dart ('k') | dart/lib/compiler/implementation/tree/nodes.dart » ('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 b2fe6befd1a7fb79bdca923c289bfc52aeab9c1f..33118f5ba07bf17830680b1ee286d6a606ffb44c 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -1311,9 +1311,7 @@ class NodeListener extends ElementListener {
void handleLiteralList(int count, Token beginToken, Token constKeyword,
Token endToken) {
NodeList elements = makeNodeList(count, beginToken, endToken, ',');
- NodeList typeArguments = popNode();
- // TODO(ahe): Type arguments are discarded.
- pushNode(new LiteralList(null, elements, constKeyword));
+ pushNode(new LiteralList(popNode(), elements, constKeyword));
}
void handleIndexedExpression(Token openSquareBracket,
« no previous file with comments | « dart/lib/compiler/implementation/resolver.dart ('k') | dart/lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698