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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart

Issue 23819039: Create type masks lazily. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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: sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart
diff --git a/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart b/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart
index a4d3936153e7e3be5ccc0a01e7bb374dd5175ad2..344b0fdd3babb201c98aa3aea3a5bec9ca6f3281 100644
--- a/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart
+++ b/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart
@@ -678,7 +678,11 @@ abstract class InferrerVisitor
}
T visitTypeReferenceSend(Send node) {
ngeoffray 2013/09/09 12:37:46 Comments please, I don't understand this change.
Johnni Winther 2013/09/10 13:19:35 Removed.
- return types.typeType;
+ if (elements.isTypeLiteral(node)) {
+ return types.typeType;
+ }
+ ClassElement cls = elements[node];
+ return types.nonNullExact(cls.rawType);
}
bool isThisOrSuper(Node node) => node.isThis() || node.isSuper();

Powered by Google App Engine
This is Rietveld 408576698