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

Unified Diff: tests/compiler/dart2js/mirrors_used_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
« no previous file with comments | « tests/compiler/dart2js/metadata_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mirrors_used_test.dart
diff --git a/tests/compiler/dart2js/mirrors_used_test.dart b/tests/compiler/dart2js/mirrors_used_test.dart
index 12292f876b15a7da4479a9bc6782e0f6b0d28699..6457d26c5d7ebaa1b55080a392a9a753f6cc9176 100644
--- a/tests/compiler/dart2js/mirrors_used_test.dart
+++ b/tests/compiler/dart2js/mirrors_used_test.dart
@@ -16,8 +16,8 @@ import 'package:compiler/implementation/apiimpl.dart' show
Compiler;
import 'package:compiler/implementation/constants/values.dart' show
- Constant,
- TypeConstant;
+ ConstantValue,
+ TypeConstantValue;
import 'package:compiler/implementation/elements/elements.dart' show
Element,
@@ -115,11 +115,11 @@ void main() {
// 1. The constructed constant for 'MirrorsUsed'.
Expect.isTrue(backend.metadataConstants.length >= 1);
- Set<Constant> compiledConstants = backend.constants.compiledConstants;
+ Set<ConstantValue> compiledConstants = backend.constants.compiledConstants;
// Make sure that most of the metadata constants aren't included in the
// generated code.
for (var dependency in backend.metadataConstants) {
- Constant constant = dependency.constant;
+ ConstantValue constant = dependency.constant;
Expect.isFalse(compiledConstants.contains(constant),
constant.toStructuredString());
}
@@ -127,8 +127,9 @@ void main() {
// The type literal 'Foo' is both used as metadata, and as a plain value in
// the program. Make sure that it isn't duplicated.
int fooConstantCount = 0;
- for (Constant constant in compiledConstants) {
- if (constant is TypeConstant && '${constant.representedType}' == 'Foo') {
+ for (ConstantValue constant in compiledConstants) {
+ if (constant is TypeConstantValue &&
+ '${constant.representedType}' == 'Foo') {
fooConstantCount++;
}
}
« no previous file with comments | « tests/compiler/dart2js/metadata_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698