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

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

Issue 1172693003: Move computeType to TypedElement and TypeDeclarationElement. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/js_emitter/js_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index 3d2bb00b7c8eec5cfe8714718db6efcd9e6cea79..7730e7d3ee8e2e5de4e3c3d8399fdcc71af678f5 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -613,14 +613,15 @@ abstract class Enqueuer {
universe.callMethodsWithFreeTypeVariables.add(element);
}
- void registerClosurizedMember(Element element, Registry registry) {
+ void registerClosurizedMember(TypedElement element, Registry registry) {
assert(element.isInstanceMember);
registerClosureIfFreeTypeVariables(element, registry);
compiler.backend.registerBoundClosure(this);
universe.closurizedMembers.add(element);
}
- void registerClosureIfFreeTypeVariables(Element element, Registry registry) {
+ void registerClosureIfFreeTypeVariables(TypedElement element,
+ Registry registry) {
if (element.computeType(compiler).containsTypeVariables) {
compiler.backend.registerClosureWithFreeTypeVariables(
element, this, registry);
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/js_emitter/js_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698