| 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 '../elements/resolution_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/call_structure.dart' show CallStructure; | 11 import '../universe/call_structure.dart' show CallStructure; |
| 12 | 12 |
| 13 enum ResultKind { | 13 enum ResultKind { |
| 14 NONE, | 14 NONE, |
| 15 ELEMENT, | 15 ELEMENT, |
| 16 TYPE, | 16 TYPE, |
| 17 ASSERT, | 17 ASSERT, |
| 18 CONSTANT, | 18 CONSTANT, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 /// Returns the list of [ConstantExpression]s for each of the arguments. If | 126 /// Returns the list of [ConstantExpression]s for each of the arguments. If |
| 127 /// [isValidAsConstant] is `false`, `null` is returned. | 127 /// [isValidAsConstant] is `false`, `null` is returned. |
| 128 List<ConstantExpression> get constantArguments { | 128 List<ConstantExpression> get constantArguments { |
| 129 if (!isValidAsConstant) return null; | 129 if (!isValidAsConstant) return null; |
| 130 return argumentResults.map((ResolutionResult result) { | 130 return argumentResults.map((ResolutionResult result) { |
| 131 return result.constant; | 131 return result.constant; |
| 132 }).toList(); | 132 }).toList(); |
| 133 } | 133 } |
| 134 } | 134 } |
| OLD | NEW |