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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_nodes.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: sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_nodes.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_nodes.dart
index 515f18481f3b94653fc15ddca680447b579ab066..9048405f357a9a5e2644ad3e0d5dc3fa1b62d43d 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_nodes.dart
@@ -344,7 +344,7 @@ class Identifier extends Expression {
}
class Literal extends Expression {
- final values.PrimitiveConstant value;
+ final values.PrimitiveConstantValue value;
Literal(this.value);
}
@@ -811,7 +811,7 @@ class Unparser {
writeStringLiteral(e);
}
else if (e.value.isDouble) {
- double v = e.value.value;
+ double v = e.value.primitiveValue;
if (v == double.INFINITY) {
withPrecedence(MULTIPLICATIVE, () {
write('1/0.0');
@@ -1292,7 +1292,7 @@ class Unparser {
if (e is StringConcat) {
e.expressions.forEach(collectParts);
} else if (e is Literal && e.value.isString) {
- for (int char in e.value.value) {
+ for (int char in e.value.primitiveValue) {
parts.add(char);
}
} else {

Powered by Google App Engine
This is Rietveld 408576698