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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/EvaluationResultImpl.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/EvaluationResultImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/EvaluationResultImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/EvaluationResultImpl.java
index 4d3f3c4bf0828af1f7393440c29f6e0fc9fd992c..d8b85a9ed0372c0fd73b2da2f8f17ea8bb8de659 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/EvaluationResultImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/EvaluationResultImpl.java
@@ -100,6 +100,15 @@ public abstract class EvaluationResultImpl {
public abstract EvaluationResultImpl shiftRight(TypeProvider typeProvider, BinaryExpression node,
EvaluationResultImpl rightOperand);
+ /**
+ * Return the result of invoking the 'length' getter on this result.
+ *
+ * @param typeProvider the type provider used to access known types
+ * @param node the node against which errors should be reported
+ * @return the result of invoking the 'length' getter on this result
+ */
+ public abstract EvaluationResultImpl stringLength(TypeProvider typeProvider, Expression node);
+
public abstract EvaluationResultImpl times(TypeProvider typeProvider, BinaryExpression node,
EvaluationResultImpl rightOperand);

Powered by Google App Engine
This is Rietveld 408576698