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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/GenerateDartErrorsTask.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/GenerateDartErrorsTask.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/GenerateDartErrorsTask.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/GenerateDartErrorsTask.java
index 40b4b6f33c7ecf90c15c60140e94c255c21f5038..5e682f579aadb539211f735d8a3516ccd5fe55e5 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/GenerateDartErrorsTask.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/task/GenerateDartErrorsTask.java
@@ -197,7 +197,10 @@ public class GenerateDartErrorsTask extends AnalysisTask {
// Use the ConstantVerifier to verify the use of constants. This needs to happen before using
// the ErrorVerifier because some error codes need the computed constant values.
//
- ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, typeProvider);
+ ConstantVerifier constantVerifier = new ConstantVerifier(
+ errorReporter,
+ libraryElement,
+ typeProvider);
unit.accept(constantVerifier);
//
// Use the ErrorVerifier to compute the rest of the errors.

Powered by Google App Engine
This is Rietveld 408576698