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

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 10873096: Issue 3904. Allow using class literal in expressions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index 1ca4321b03ecedd0f93709bdb6a9628d0c1ed46b..457941fb91df940bb07252c203051685294ecc1c 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -180,6 +180,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
private final Type nullType;
private final InterfaceType functionType;
private final InterfaceType dynamicIteratorType;
+ private final InterfaceType typeType;
private final boolean developerModeChecks;
private final boolean suppressSdkWarnings;
private final boolean typeChecksForInferredTypes;
@@ -214,6 +215,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
this.nullType = typeProvider.getNullType();
this.functionType = typeProvider.getFunctionType();
this.dynamicIteratorType = typeProvider.getIteratorType(dynamicType);
+ this.typeType = typeProvider.getTypeType();
CompilerOptions compilerOptions = context.getCompilerConfiguration().getCompilerOptions();
this.suppressSdkWarnings = compilerOptions.suppressSdkWarnings();
this.typeChecksForInferredTypes = compilerOptions.typeChecksForInferredTypes();

Powered by Google App Engine
This is Rietveld 408576698