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

Unified Diff: tests/compiler/dart2js/backend_dart/dart_printer_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/backend_dart/dart_printer_test.dart
diff --git a/tests/compiler/dart2js/backend_dart/dart_printer_test.dart b/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
index c7f2c499f427eece86d49769aed349ff28bd55dd..180870f6804fceda58b94d9cbbc7e649dde638c6 100644
--- a/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
+++ b/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
@@ -191,7 +191,7 @@ class AstBuilder extends Listener {
quoting,
isFirst: i == 0,
isLast: i == parts.length - 1);
- members.add(new Literal(new StringConstant(str)));
+ members.add(new Literal(new StringConstantValue(str)));
}
}
push(new StringConcat(members));
@@ -288,16 +288,17 @@ class AstBuilder extends Listener {
}
handleLiteralBool(Token t) {
bool value = t.value == 'true';
- push(new Literal(value ? new TrueConstant() : new FalseConstant()));
+ push(new Literal(
+ value ? new TrueConstantValue() : new FalseConstantValue()));
}
handleLiteralDouble(t) {
- push(new Literal(new DoubleConstant(double.parse(t.value))));
+ push(new Literal(new DoubleConstantValue(double.parse(t.value))));
}
handleLiteralInt(Token t) {
- push(new Literal(new IntConstant(int.parse(t.value))));
+ push(new Literal(new IntConstantValue(int.parse(t.value))));
}
handleLiteralNull(t) {
- push(new Literal(new NullConstant()));
+ push(new Literal(new NullConstantValue()));
}
endLiteralSymbol(Token hash, int idCount) {
List<Identifier> ids = popList(idCount, <Identifier>[]);
@@ -639,8 +640,8 @@ void checkDeepEqual(x, y) {
}
}
}
- else if (x is PrimitiveConstant && y is PrimitiveConstant) {
- checkDeepEqual(x.value, y.value);
+ else if (x is PrimitiveConstantValue && y is PrimitiveConstantValue) {
+ checkDeepEqual(x.primitiveValue, y.primitiveValue);
}
else if (x is DartString && y is DartString) {
if (x.slowToString() != y.slowToString()) {

Powered by Google App Engine
This is Rietveld 408576698