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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.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_to_frontend_ast.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
index 7ac3f9778654ed1168b750ff1e65706dd4fce0d3..bef3665f52e89c194096d77bb26445a7c073988d 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart
@@ -460,20 +460,21 @@ class TreePrinter {
bracketList(',', [makeExpression(exp.index)]));
} else if (exp is Literal) {
precedence = CALLEE;
- values.PrimitiveConstant value = exp.value;
- Token tok = new StringToken.fromString(STRING_INFO, '${value.value}', -1);
+ values.PrimitiveConstantValue value = exp.value;
+ Token tok = new StringToken.fromString(
+ STRING_INFO, '${value.primitiveValue}', -1);
if (value.isString) {
result = unparseStringLiteral(exp);
} else if (value.isInt) {
result = new tree.LiteralInt(tok, null);
} else if (value.isDouble) {
- if (value.value == double.INFINITY) {
+ if (value.primitiveValue == double.INFINITY) {
precedence = MULTIPLICATIVE;
tok = new StringToken.fromString(STRING_INFO, '1/0.0', -1);
- } else if (value.value == double.NEGATIVE_INFINITY) {
+ } else if (value.primitiveValue == double.NEGATIVE_INFINITY) {
precedence = MULTIPLICATIVE;
tok = new StringToken.fromString(STRING_INFO, '-1/0.0', -1);
- } else if (value.value.isNaN) {
+ } else if (value.primitiveValue.isNaN) {
precedence = MULTIPLICATIVE;
tok = new StringToken.fromString(STRING_INFO, '0/0.0', -1);
}

Powered by Google App Engine
This is Rietveld 408576698