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

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

Issue 614993002: Rename Constant to ConstantValue and ConstExp to ConstantExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. 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: tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
diff --git a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
index cbb0a772766f19a1c0eee6cf7007b2dffb700250..5b404c18853b6aef22a43157425040b2dca5eecf 100644
--- a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
+++ b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
@@ -39,18 +39,18 @@ void main() {
var lib =
compiler.libraryLoader.lookupLibrary(Uri.parse("memory:lib.dart"));
var backend = compiler.backend;
- List<Constant> allConstants = [];
+ List<ConstantValue> allConstants = [];
- addConstantWithDependendencies(Constant c) {
+ addConstantWithDependendencies(ConstantValue c) {
allConstants.add(c);
c.getDependencies().forEach(addConstantWithDependendencies);
}
backend.constants.compiledConstants.forEach(addConstantWithDependendencies);
for (String stringValue in ["cA", "cB", "cC"]) {
- Constant constant = allConstants.firstWhere((constant) {
- return constant is StringConstant
- && constant.value.slowToString() == stringValue;
+ ConstantValue constant = allConstants.firstWhere((constant) {
+ return constant.isString
+ && constant.primitiveValue.slowToString() == stringValue;
});
Expect.notEquals(null, outputUnitForConstant(constant));
Expect.notEquals(mainOutputUnit, outputUnitForConstant(constant));
« no previous file with comments | « tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart ('k') | tests/compiler/dart2js/metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698