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

Unified Diff: pkg/compiler/lib/src/enqueue.dart

Issue 2423953002: Change TypeInference to handle super calls as direct invocations. (Closed)
Patch Set: Register instance methods from direct invocation. Created 4 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: pkg/compiler/lib/src/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index 271e3eccc8e657dba3f2eefdeb8695d77ac5090e..12c5a42bb0382d4fb7fae6d83722c78a68889c3b 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -600,6 +600,10 @@ class ResolutionEnqueuer extends Enqueuer {
case StaticUseKind.CONST_CONSTRUCTOR_INVOKE:
registerTypeUse(new TypeUse.instantiation(staticUse.type));
break;
+ case StaticUseKind.DIRECT_INVOKE:
+ invariant(
+ element, 'Direct static use is not supported for resolution.');
+ break;
}
if (addElement) {
addToWorkList(element);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/inferrer_visitor.dart » ('j') | pkg/compiler/lib/src/universe/use.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698