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

Unified Diff: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart

Issue 812523002: Change signature of lookupConstructor to only require a name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fail gracefully on missing default constructors when evaluating constant constructors. Created 5 years, 11 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: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
index 7c7b86707be7eb116857222f3f56d8ceb1755b40..4f60a2712890242f518537effbf78088c54d2495 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -556,9 +556,7 @@ class SimpleTypeInferrerVisitor<T>
if (!isConstructorRedirect
&& !seenSuperConstructorCall
&& !cls.isObject) {
- Selector selector =
- new Selector.callDefaultConstructor(analyzedElement.library);
- FunctionElement target = cls.superclass.lookupConstructor(selector);
+ FunctionElement target = cls.superclass.lookupDefaultConstructor();
analyzeSuperConstructorCall(target, new ArgumentsTypes([], {}));
synthesizeForwardingCall(analyzedElement, target);
}

Powered by Google App Engine
This is Rietveld 408576698