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

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

Issue 581773002: Implement new constant expressions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 6 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/ErrorResult.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ErrorResult.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ErrorResult.java
index 732a73d58a4a7de89de72cdce1a5e85b8fcbaa8d..d26af02efe71a5ca343fc3f6b48eba5c721c8802 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ErrorResult.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ErrorResult.java
@@ -251,6 +251,11 @@ public class ErrorResult extends EvaluationResultImpl {
}
@Override
+ public EvaluationResultImpl stringLength(TypeProvider typeProvider, Expression node) {
+ return this;
+ }
+
+ @Override
public EvaluationResultImpl times(TypeProvider typeProvider, BinaryExpression node,
EvaluationResultImpl rightOperand) {
return rightOperand.timesError(node, this);

Powered by Google App Engine
This is Rietveld 408576698