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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/ElementFactory.java

Issue 613303003: Rework EvaluationResultImpl class hierarchy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rework to use ErrorReporter 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_test/src/com/google/dart/engine/element/ElementFactory.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/ElementFactory.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/ElementFactory.java
index c1a66b6c3511260ae05c541a47e095a8625ba2bf..4f19fe191cc4605b3711e3979ea6889d69a763bb 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/ElementFactory.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/ElementFactory.java
@@ -15,7 +15,7 @@ package com.google.dart.engine.element;
import com.google.dart.engine.ast.Identifier;
import com.google.dart.engine.context.AnalysisContext;
-import com.google.dart.engine.internal.constant.ValidResult;
+import com.google.dart.engine.internal.constant.EvaluationResultImpl;
import com.google.dart.engine.internal.element.ClassElementImpl;
import com.google.dart.engine.internal.element.CompilationUnitElementImpl;
import com.google.dart.engine.internal.element.ConstFieldElementImpl;
@@ -175,7 +175,7 @@ public final class ElementFactory {
fieldMap.put(indexFieldName, new DartObjectImpl(intType, new IntState(BigInteger.valueOf(i))));
fieldMap.put(nameFieldName, new DartObjectImpl(stringType, new StringState(constantName)));
DartObjectImpl value = new DartObjectImpl(enumType, new GenericState(fieldMap));
- constantElement.setEvaluationResult(new ValidResult(value));
+ constantElement.setEvaluationResult(new EvaluationResultImpl(value));
fields.add(constantElement);
}
//

Powered by Google App Engine
This is Rietveld 408576698