| 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 '../dart_types.dart'; | 9 import '../elements/resolution_types.dart'; |
| 10 import '../elements/elements.dart' | 10 import '../elements/elements.dart' |
| 11 show FieldElement, FunctionElement, PrefixElement; | 11 show FieldElement, FunctionElement, PrefixElement; |
| 12 import '../tree/dartstring.dart'; | 12 import '../tree/dartstring.dart'; |
| 13 import '../util/util.dart' show Hashing; | 13 import '../util/util.dart' show Hashing; |
| 14 | 14 |
| 15 enum ConstantValueKind { | 15 enum ConstantValueKind { |
| 16 FUNCTION, | 16 FUNCTION, |
| 17 NULL, | 17 NULL, |
| 18 INT, | 18 INT, |
| 19 DOUBLE, | 19 DOUBLE, |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 DartType getType(CommonElements types) => const DynamicType(); | 822 DartType getType(CommonElements types) => const DynamicType(); |
| 823 | 823 |
| 824 ConstantValueKind get kind => ConstantValueKind.NON_CONSTANT; | 824 ConstantValueKind get kind => ConstantValueKind.NON_CONSTANT; |
| 825 | 825 |
| 826 @override | 826 @override |
| 827 String toStructuredText() => 'NonConstant'; | 827 String toStructuredText() => 'NonConstant'; |
| 828 | 828 |
| 829 @override | 829 @override |
| 830 String toDartText() => '>>non-constant<<'; | 830 String toDartText() => '>>non-constant<<'; |
| 831 } | 831 } |
| OLD | NEW |