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

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: 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
Index: dart/lib/compiler/implementation/closure.dart
diff --git a/dart/lib/compiler/implementation/closure.dart b/dart/lib/compiler/implementation/closure.dart
index 090a8e9c5b304645014e2ee05fdd8ddd2f8148f9..208c7c33a5849e24c74172bd1a625b3197071705 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);
Johnni Winther 2012/10/22 09:41:38 Nice!
bool hasTypeVariable(DartType type) {
if (type is TypeVariableType) {

Powered by Google App Engine
This is Rietveld 408576698