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..0c491b2711a7dcec753711a77c510e14ce9f7e3f 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,20 @@ 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); |
sigurdm
2014/10/01 07:46:47
Long line
Johnni Winther
2014/10/01 08:21:23
Done.
|
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); |
} |