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

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

Issue 359413006: Fix handling of type literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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
Index: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
index ce0388005c6a1abe3ab6e3044515ddf67e23a6ca..15cbf1eaac74853d0ae5662fc8e1bb29b60223f2 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
@@ -740,8 +740,13 @@ abstract class InferrerVisitor
return types.nonNullSubtype(compiler.symbolClass);
}
- T visitTypeReferenceSend(Send node) {
- return elements.isTypeLiteral(node) ? types.typeType : types.dynamicType;
+ T visitTypePrefixSend(Send node) {
+ // TODO(johnniwinther): Remove the need for handling this node.
+ return types.dynamicType;
+ }
+
+ T visitTypeLiteralSend(Send node) {
+ return types.typeType;
}
bool isThisOrSuper(Node node) => node.isThis() || node.isSuper();

Powered by Google App Engine
This is Rietveld 408576698