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

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

Issue 113143004: Constant evaluation support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 7 years 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/constant/EvaluationResult.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/constant/EvaluationResult.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/constant/EvaluationResult.java
index 0ec00503b14ab929e39055d9ccaee6a8ea674bb7..93d98f516b91354c945b31b398ab524de8690fde 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/constant/EvaluationResult.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/constant/EvaluationResult.java
@@ -38,14 +38,14 @@ public class EvaluationResult {
* @param value the value of the expression
* @return the result of evaluating an expression that is a compile-time constant
*/
- public static EvaluationResult forValue(Object value) {
+ public static EvaluationResult forValue(DartObject value) {
return new EvaluationResult(value, null);
}
/**
* The value of the expression.
*/
- private Object value;
+ private DartObject value;
/**
* The errors that should be reported for the expression(s) that were evaluated.
@@ -59,7 +59,7 @@ public class EvaluationResult {
* @param value the value of the expression
* @param errors the errors that should be reported for the expression(s) that were evaluated
*/
- private EvaluationResult(Object value, AnalysisError[] errors) {
+ private EvaluationResult(DartObject value, AnalysisError[] errors) {
this.value = value;
this.errors = errors;
}
@@ -81,7 +81,7 @@ public class EvaluationResult {
*
* @return the value of the expression
*/
- public Object getValue() {
+ public DartObject getValue() {
return value;
}

Powered by Google App Engine
This is Rietveld 408576698