| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library backend_ast_nodes; | 5 library backend_ast_nodes; |
| 6 | 6 |
| 7 import '../constants/values.dart' as values; | 7 import '../constants/values.dart' as values; |
| 8 import '../dart_types.dart' as types; | 8 import '../dart_types.dart' as types; |
| 9 import '../elements/elements.dart' as elements; | 9 import '../elements/elements.dart' as elements; |
| 10 import '../tree/tree.dart' as tree; | 10 import '../tree/tree.dart' as tree; |
| (...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 write('-1/0.0'); | 845 write('-1/0.0'); |
| 846 }); | 846 }); |
| 847 } else if (v.isNaN) { | 847 } else if (v.isNaN) { |
| 848 withPrecedence(MULTIPLICATIVE, () { | 848 withPrecedence(MULTIPLICATIVE, () { |
| 849 write('0/0.0'); | 849 write('0/0.0'); |
| 850 }); | 850 }); |
| 851 } else { | 851 } else { |
| 852 write(v.toString()); | 852 write(v.toString()); |
| 853 } | 853 } |
| 854 } else { | 854 } else { |
| 855 write(e.value.unparse()); | 855 write(e.value.toDartText()); |
| 856 } | 856 } |
| 857 } else if (e is LiteralList) { | 857 } else if (e is LiteralList) { |
| 858 if (e.isConst) { | 858 if (e.isConst) { |
| 859 write(' const '); | 859 write(' const '); |
| 860 } | 860 } |
| 861 if (e.typeArgument != null) { | 861 if (e.typeArgument != null) { |
| 862 write('<'); | 862 write('<'); |
| 863 writeType(e.typeArgument); | 863 writeType(e.typeArgument); |
| 864 write('>'); | 864 write('>'); |
| 865 } | 865 } |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1547 final StringChunk previous; | 1547 final StringChunk previous; |
| 1548 final tree.StringQuoting quoting; | 1548 final tree.StringQuoting quoting; |
| 1549 num cost; | 1549 num cost; |
| 1550 | 1550 |
| 1551 OpenStringChunk(this.previous, this.quoting, this.cost); | 1551 OpenStringChunk(this.previous, this.quoting, this.cost); |
| 1552 | 1552 |
| 1553 StringChunk end(int endIndex) { | 1553 StringChunk end(int endIndex) { |
| 1554 return new StringChunk(previous, quoting, endIndex); | 1554 return new StringChunk(previous, quoting, endIndex); |
| 1555 } | 1555 } |
| 1556 } | 1556 } |
| OLD | NEW |