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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/BoolState.java

Issue 273703003: Don't generate errors when failing to follow const constructor redirections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/object/BoolState.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/BoolState.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/BoolState.java
index dd04e568022d0b735d15acc21d861317d41412de..46234bc4f0f31892b0af44b7b825707d2dd68458 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/BoolState.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/BoolState.java
@@ -129,6 +129,11 @@ public class BoolState extends InstanceState {
}
@Override
+ public boolean isUnknown() {
+ return value == null;
+ }
+
+ @Override
public BoolState logicalAnd(InstanceState rightOperand) throws EvaluationException {
assertBool(rightOperand);
if (value == null) {

Powered by Google App Engine
This is Rietveld 408576698