| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.constants.values; | 5 library dart2js.constants.values; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../core_types.dart'; | 8 import '../core_types.dart'; |
| 9 import '../elements/elements.dart' show Entity; | |
| 10 import '../elements/entities.dart'; | 9 import '../elements/entities.dart'; |
| 11 import '../elements/types.dart'; | 10 import '../elements/types.dart'; |
| 12 import '../tree/dartstring.dart'; | 11 import '../tree/dartstring.dart'; |
| 13 import '../util/util.dart' show Hashing; | 12 import '../util/util.dart' show Hashing; |
| 14 | 13 |
| 15 enum ConstantValueKind { | 14 enum ConstantValueKind { |
| 16 FUNCTION, | 15 FUNCTION, |
| 17 NULL, | 16 NULL, |
| 18 INT, | 17 INT, |
| 19 DOUBLE, | 18 DOUBLE, |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 DartType getType(CommonElements types) => types.dynamicType; | 820 DartType getType(CommonElements types) => types.dynamicType; |
| 822 | 821 |
| 823 ConstantValueKind get kind => ConstantValueKind.NON_CONSTANT; | 822 ConstantValueKind get kind => ConstantValueKind.NON_CONSTANT; |
| 824 | 823 |
| 825 @override | 824 @override |
| 826 String toStructuredText() => 'NonConstant'; | 825 String toStructuredText() => 'NonConstant'; |
| 827 | 826 |
| 828 @override | 827 @override |
| 829 String toDartText() => '>>non-constant<<'; | 828 String toDartText() => '>>non-constant<<'; |
| 830 } | 829 } |
| OLD | NEW |