| 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 '../constants/constant_system.dart'; | 7 import '../constants/constant_system.dart'; |
| 8 import '../core_types.dart'; | 8 import '../core_types.dart'; |
| 9 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
| 10 import '../diagnostics/invariant.dart' show | 10 import '../diagnostics/invariant.dart' show |
| 11 assertDebugMode; | 11 assertDebugMode; |
| 12 import '../elements/elements.dart' show | 12 import '../elements/elements.dart' show |
| 13 ConstructorElement, | 13 ConstructorElement, |
| 14 Element, | 14 Element, |
| 15 FieldElement, | 15 FieldElement, |
| 16 FunctionElement, | 16 FunctionElement, |
| 17 PrefixElement, | 17 PrefixElement, |
| 18 VariableElement; | 18 VariableElement; |
| 19 import '../resolution/operators.dart'; | 19 import '../resolution/operators.dart'; |
| 20 import '../tree/tree.dart' show DartString; | 20 import '../tree/tree.dart' show |
| 21 import '../universe/universe.dart' show CallStructure; | 21 DartString; |
| 22 import '../universe/call_structure.dart' show |
| 23 CallStructure; |
| 22 import 'evaluation.dart'; | 24 import 'evaluation.dart'; |
| 23 import 'values.dart'; | 25 import 'values.dart'; |
| 24 | 26 |
| 25 enum ConstantExpressionKind { | 27 enum ConstantExpressionKind { |
| 26 BINARY, | 28 BINARY, |
| 27 BOOL, | 29 BOOL, |
| 28 BOOL_FROM_ENVIRONMENT, | 30 BOOL_FROM_ENVIRONMENT, |
| 29 CONCATENATE, | 31 CONCATENATE, |
| 30 CONDITIONAL, | 32 CONDITIONAL, |
| 31 CONSTRUCTED, | 33 CONSTRUCTED, |
| (...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1598 visit(exp.name); | 1600 visit(exp.name); |
| 1599 if (exp.defaultValue != null) { | 1601 if (exp.defaultValue != null) { |
| 1600 sb.write(', defaultValue: '); | 1602 sb.write(', defaultValue: '); |
| 1601 visit(exp.defaultValue); | 1603 visit(exp.defaultValue); |
| 1602 } | 1604 } |
| 1603 sb.write(')'); | 1605 sb.write(')'); |
| 1604 } | 1606 } |
| 1605 | 1607 |
| 1606 String toString() => sb.toString(); | 1608 String toString() => sb.toString(); |
| 1607 } | 1609 } |
| OLD | NEW |