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

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

Issue 589043003: Backout constant support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/object/InstanceState.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java
index 6e21041afd76d2e4f40138bb9607a83fcffdad5b..c0bfbd31253afc2cfa0b2ddc41705c9e080adf3e 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java
@@ -30,9 +30,10 @@ public abstract class InstanceState {
* @throws EvaluationException if the operator is not appropriate for an object of this kind
*/
public InstanceState add(InstanceState rightOperand) throws EvaluationException {
- if (this instanceof StringState || rightOperand instanceof StringState) {
- return concatenate(rightOperand);
- }
+ // TODO(brianwilkerson) Uncomment the code below when the new constant support can be added.
+// if (this instanceof StringState || rightOperand instanceof StringState) {
+// return concatenate(rightOperand);
+// }
assertNumOrNull(this);
assertNumOrNull(rightOperand);
throw new EvaluationException(CompileTimeErrorCode.INVALID_CONSTANT);

Powered by Google App Engine
This is Rietveld 408576698