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

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

Issue 21511003: Support symbol literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 12389eef60e7aa2771c0cce057c8d51bd380bdad..b66255d1dbe2ec889aa87dad8f58e9ad4756a996 100644
--- a/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart
+++ b/sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart
@@ -578,6 +578,10 @@ abstract class InferrerVisitor<T> extends ResolvedVisitor<T> {
T visitLiteralNull(LiteralNull node) {
return types.nullType;
}
+
+ T visitSymbolLiteral(SymbolLiteral node) {
+ return types.nonNullExact(compiler.symbolClass.rawType);
+ }
T visitTypeReferenceSend(Send node) {
return types.typeType;

Powered by Google App Engine
This is Rietveld 408576698