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 dart2js.constants.expressions; | 5 library dart2js.constants.expressions; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../constants/constant_system.dart'; | 8 import '../constants/constant_system.dart'; |
9 import '../common_elements.dart'; | 9 import '../common_elements.dart'; |
| 10 import '../elements/entities.dart'; |
| 11 import '../elements/operators.dart'; |
10 import '../elements/types.dart'; | 12 import '../elements/types.dart'; |
11 import '../elements/entities.dart'; | |
12 import '../resolution/operators.dart'; | |
13 import '../tree/dartstring.dart' show DartString; | 13 import '../tree/dartstring.dart' show DartString; |
14 import '../universe/call_structure.dart' show CallStructure; | 14 import '../universe/call_structure.dart' show CallStructure; |
15 import 'constructors.dart'; | 15 import 'constructors.dart'; |
16 import 'evaluation.dart'; | 16 import 'evaluation.dart'; |
17 import 'values.dart'; | 17 import 'values.dart'; |
18 | 18 |
19 enum ConstantExpressionKind { | 19 enum ConstantExpressionKind { |
20 BINARY, | 20 BINARY, |
21 BOOL, | 21 BOOL, |
22 BOOL_FROM_ENVIRONMENT, | 22 BOOL_FROM_ENVIRONMENT, |
(...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1936 visit(exp.name); | 1936 visit(exp.name); |
1937 if (exp.defaultValue != null) { | 1937 if (exp.defaultValue != null) { |
1938 sb.write(', defaultValue: '); | 1938 sb.write(', defaultValue: '); |
1939 visit(exp.defaultValue); | 1939 visit(exp.defaultValue); |
1940 } | 1940 } |
1941 sb.write(')'); | 1941 sb.write(')'); |
1942 } | 1942 } |
1943 | 1943 |
1944 String toString() => sb.toString(); | 1944 String toString() => sb.toString(); |
1945 } | 1945 } |
OLD | NEW |