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

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

Issue 10970006: Correctly handle const constructors with type parameters. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: lib/compiler/implementation/scanner/listener.dart
===================================================================
--- lib/compiler/implementation/scanner/listener.dart (revision 12600)
+++ lib/compiler/implementation/scanner/listener.dart (working copy)
@@ -1372,12 +1372,8 @@
}
void handleConstExpression(Token token, bool named) {
- NodeList arguments = popNode();
- if (named) {
- Identifier name = popNode();
- }
- TypeAnnotation type = popNode();
- pushNode(new NewExpression(token, new Send(null, type, arguments)));
+ // [token] carries the 'const' information.
+ handleNewExpression(token, named);
}
void handleOperatorName(Token operatorKeyword, Token token) {

Powered by Google App Engine
This is Rietveld 408576698