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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java

Issue 23578028: Fix for issue 13272 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added missed file Created 7 years, 3 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/constant/ValidResult.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java
index 1ae03bf702c1a15cbe33f2ebd8221622f3b66249..73952f0b753ffd3f52f895cd8bf9b1099409a91e 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java
@@ -96,6 +96,17 @@ public class ValidResult extends EvaluationResultImpl {
return rightOperand.addToValid(node, this);
}
+ /**
+ * Return the result of applying boolean conversion to this result.
+ *
+ * @param node the node against which errors should be reported
+ * @return the result of applying boolean conversion to the given value
+ */
+ @Override
+ public EvaluationResultImpl applyBooleanConversion(ASTNode node) {
+ return booleanConversion(node, value);
+ }
+
@Override
public EvaluationResultImpl bitAnd(BinaryExpression node, EvaluationResultImpl rightOperand) {
return rightOperand.bitAndValid(node, this);

Powered by Google App Engine
This is Rietveld 408576698