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 '../dart2jslib.dart' show assertDebugMode; | 7 import '../dart2jslib.dart' show assertDebugMode; |
8 import '../dart_types.dart'; | 8 import '../dart_types.dart'; |
9 import '../elements/elements.dart' show | 9 import '../elements/elements.dart' show |
10 Element, | 10 Element, |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 visitConditional(ConditionalConstantExpression exp) { | 403 visitConditional(ConditionalConstantExpression exp) { |
404 write(exp, exp.condition, leftAssociative: false); | 404 write(exp, exp.condition, leftAssociative: false); |
405 sb.write(' ? '); | 405 sb.write(' ? '); |
406 write(exp, exp.trueExp); | 406 write(exp, exp.trueExp); |
407 sb.write(' : '); | 407 sb.write(' : '); |
408 write(exp, exp.falseExp); | 408 write(exp, exp.falseExp); |
409 } | 409 } |
410 | 410 |
411 String toString() => sb.toString(); | 411 String toString() => sb.toString(); |
412 } | 412 } |
OLD | NEW |