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

Unified Diff: dart/lib/compiler/implementation/closure.dart

Issue 11227007: Unify parsing of constructor references. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add asRaw from other CL Created 8 years, 2 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/lib/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/closure.dart
diff --git a/dart/lib/compiler/implementation/closure.dart b/dart/lib/compiler/implementation/closure.dart
index 23d5e9e8441c657b27e69be71a155a975f42ab94..e832661bf7a1bf5c9e023fe6ed4e2685386aa05b 100644
--- a/dart/lib/compiler/implementation/closure.dart
+++ b/dart/lib/compiler/implementation/closure.dart
@@ -366,8 +366,7 @@ class ClosureTranslator extends Visitor {
}
visitNewExpression(NewExpression node) {
- TypeAnnotation annotation = node.send.getTypeAnnotation();
- DartType type = elements.getType(annotation);
+ DartType type = elements.getType(node);
bool hasTypeVariable(DartType type) {
if (type is TypeVariableType) {
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698