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

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

Issue 994823003: Use no arguments when simulating implicit call to super constructor during type inference. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 020b81bfad39727fdcdaaf139e4eeae99c5de96d..f5460e37ba203c3f48a01a3e9f257f4c336459a1 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -558,8 +558,15 @@ class SimpleTypeInferrerVisitor<T>
&& !seenSuperConstructorCall
&& !cls.isObject) {
FunctionElement target = cls.superclass.lookupDefaultConstructor();
- analyzeSuperConstructorCall(target, new ArgumentsTypes([], {}));
- synthesizeForwardingCall(analyzedElement, target);
+ ArgumentsTypes arguments = new ArgumentsTypes([], {});
+ analyzeSuperConstructorCall(target, arguments);
+ inferrer.registerCalledElement(node,
+ null,
+ outermostElement,
+ target.implementation,
+ arguments,
+ sideEffects,
+ inLoop);
}
visit(node.body);
inferrer.recordExposesThis(analyzedElement, isThisExposed);
@@ -1291,6 +1298,7 @@ class SimpleTypeInferrerVisitor<T>
sideEffects,
inLoop);
}
+
T visitRedirectingFactoryBody(ast.RedirectingFactoryBody node) {
Element element = elements.getRedirectingTargetConstructor(node);
if (Elements.isErroneous(element)) {

Powered by Google App Engine
This is Rietveld 408576698