| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.resolution.result; | 5 library dart2js.resolution.result; |
| 6 | 6 |
| 7 import '../constants/expressions.dart'; | 7 import '../constants/expressions.dart'; |
| 8 import '../dart_types.dart'; | 8 import '../dart_types.dart'; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
| 11 import '../universe/universe.dart' show | 11 import '../universe/call_structure.dart' show |
| 12 CallStructure; | 12 CallStructure; |
| 13 | 13 |
| 14 enum ResultKind { | 14 enum ResultKind { |
| 15 NONE, | 15 NONE, |
| 16 ELEMENT, | 16 ELEMENT, |
| 17 TYPE, | 17 TYPE, |
| 18 ASSERT, | 18 ASSERT, |
| 19 CONSTANT, | 19 CONSTANT, |
| 20 PREFIX, | 20 PREFIX, |
| 21 } | 21 } |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 /// Returns the list of [ConstantExpression]s for each of the arguments. If | 138 /// Returns the list of [ConstantExpression]s for each of the arguments. If |
| 139 /// [isValidAsConstant] is `false`, `null` is returned. | 139 /// [isValidAsConstant] is `false`, `null` is returned. |
| 140 List<ConstantExpression> get constantArguments { | 140 List<ConstantExpression> get constantArguments { |
| 141 if (!isValidAsConstant) return null; | 141 if (!isValidAsConstant) return null; |
| 142 return argumentResults.map((ResolutionResult result) { | 142 return argumentResults.map((ResolutionResult result) { |
| 143 return result.constant; | 143 return result.constant; |
| 144 }).toList(); | 144 }).toList(); |
| 145 } | 145 } |
| 146 } | 146 } |
| OLD | NEW |