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

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
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/scanner/listener.dart
===================================================================
--- lib/compiler/implementation/scanner/listener.dart (revision 12694)
+++ lib/compiler/implementation/scanner/listener.dart (working copy)
@@ -1468,12 +1468,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) {
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698