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 '../core_types.dart'; | 9 import '../core_types.dart'; |
10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
11 import '../elements/elements.dart' | 11 import '../elements/elements.dart' |
12 show | 12 show |
13 ConstructorElement, | 13 ConstructorElement, |
14 FieldElement, | 14 FieldElement, |
15 FunctionElement, | 15 FunctionElement, |
16 PrefixElement, | 16 PrefixElement, |
17 VariableElement; | 17 VariableElement; |
18 import '../resolution/operators.dart'; | 18 import '../resolution/operators.dart'; |
19 import '../tree/tree.dart' show DartString; | 19 import '../tree/dartstring.dart' show DartString; |
20 import '../universe/call_structure.dart' show CallStructure; | 20 import '../universe/call_structure.dart' show CallStructure; |
21 import 'evaluation.dart'; | 21 import 'evaluation.dart'; |
22 import 'values.dart'; | 22 import 'values.dart'; |
23 | 23 |
24 enum ConstantExpressionKind { | 24 enum ConstantExpressionKind { |
25 BINARY, | 25 BINARY, |
26 BOOL, | 26 BOOL, |
27 BOOL_FROM_ENVIRONMENT, | 27 BOOL_FROM_ENVIRONMENT, |
28 CONCATENATE, | 28 CONCATENATE, |
29 CONDITIONAL, | 29 CONDITIONAL, |
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1881 visit(exp.name); | 1881 visit(exp.name); |
1882 if (exp.defaultValue != null) { | 1882 if (exp.defaultValue != null) { |
1883 sb.write(', defaultValue: '); | 1883 sb.write(', defaultValue: '); |
1884 visit(exp.defaultValue); | 1884 visit(exp.defaultValue); |
1885 } | 1885 } |
1886 sb.write(')'); | 1886 sb.write(')'); |
1887 } | 1887 } |
1888 | 1888 |
1889 String toString() => sb.toString(); | 1889 String toString() => sb.toString(); |
1890 } | 1890 } |
OLD | NEW |