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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/ResolveDartUnitTask.java

Issue 267923004: Check const map literal keys and switch case exprs using type of constant. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/ResolveDartUnitTask.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/ResolveDartUnitTask.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/ResolveDartUnitTask.java
index a213ef18a5150167c5deee1c170839ad730f4cb9..d20e8e1cc9e61cb39a198b35f06cd01c23ba3d75 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/ResolveDartUnitTask.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/ResolveDartUnitTask.java
@@ -170,7 +170,10 @@ public class ResolveDartUnitTask extends AnalysisTask {
inheritanceManager);
unit.accept(errorVerifier);
- ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, typeProvider);
+ ConstantVerifier constantVerifier = new ConstantVerifier(
+ errorReporter,
+ libraryElement,
+ typeProvider);
unit.accept(constantVerifier);
} finally {
counterHandleErrors.stop();

Powered by Google App Engine
This is Rietveld 408576698