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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Peter's comments. Created 8 years, 1 month 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: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index 0f5fa175133601bfff948f08cb1ba97eaa6bcd58..6e17f5fcd2327db9f036d336012ae5cad43071ce 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -127,6 +127,7 @@ abstract class Compiler implements DiagnosticListener {
ClassElement functionClass;
ClassElement nullClass;
ClassElement listClass;
+ ClassElement typeClass;
ClassElement mapClass;
ClassElement jsInvocationMirrorClass;
Element assertMethod;
@@ -403,6 +404,7 @@ abstract class Compiler implements DiagnosticListener {
stringClass = lookupSpecialClass(const SourceString('String'));
functionClass = lookupSpecialClass(const SourceString('Function'));
listClass = lookupSpecialClass(const SourceString('List'));
+ typeClass = lookupSpecialClass(const SourceString('Type'));
mapClass = lookupSpecialClass(const SourceString('Map'));
jsInvocationMirrorClass =
lookupSpecialClass(const SourceString('JSInvocationMirror'));

Powered by Google App Engine
This is Rietveld 408576698