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

Unified Diff: tests/compiler/dart2js/constant_expression_evaluate_test.dart

Issue 2857373002: Handle more constants in Constantifier (Closed)
Patch Set: Updated cf. comments. Created 3 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | tests/compiler/dart2js/kernel/impact_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/constant_expression_evaluate_test.dart
diff --git a/tests/compiler/dart2js/constant_expression_evaluate_test.dart b/tests/compiler/dart2js/constant_expression_evaluate_test.dart
index ed4a9258d975d4839c16303244000aa09a40108c..6c632ede591756fd13e0a211fe64119e0ccdb74a 100644
--- a/tests/compiler/dart2js/constant_expression_evaluate_test.dart
+++ b/tests/compiler/dart2js/constant_expression_evaluate_test.dart
@@ -39,7 +39,7 @@ class ConstantData {
const ConstantData(this.code, this.expectedValues);
}
-class MemoryEnvironment implements Environment {
+class MemoryEnvironment implements EvaluationEnvironment {
final Compiler _compiler;
final Map<String, String> env;
@@ -281,7 +281,7 @@ Future testData(TestData data) async {
FieldElement field = library.localLookup(name);
ConstantExpression constant = field.constant;
data.expectedValues.forEach((Map<String, String> env, String expectedText) {
- Environment environment = new MemoryEnvironment(compiler, env);
+ EvaluationEnvironment environment = new MemoryEnvironment(compiler, env);
ConstantValue value =
constant.evaluate(environment, DART_CONSTANT_SYSTEM);
String valueText = value.toStructuredText();
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | tests/compiler/dart2js/kernel/impact_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698