OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 types; | 5 library types; |
6 | 6 |
| 7 import 'dart:collection' show Queue; |
| 8 |
7 import '../dart2jslib.dart' hide Selector; | 9 import '../dart2jslib.dart' hide Selector; |
8 import '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
9 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
10 import '../util/util.dart'; | 12 import '../util/util.dart'; |
11 import '../universe/universe.dart'; | 13 import '../universe/universe.dart'; |
12 | 14 |
13 part 'concrete_types_inferrer.dart'; | 15 part 'concrete_types_inferrer.dart'; |
14 | 16 |
15 /** | 17 /** |
16 * The types task infers guaranteed types globally. | 18 * The types task infers guaranteed types globally. |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 * [:null:] if it gives up. | 244 * [:null:] if it gives up. |
243 */ | 245 */ |
244 Element computeLub(Element a, Element b) { | 246 Element computeLub(Element a, Element b) { |
245 // Fast common case, but also simple initial implementation. | 247 // Fast common case, but also simple initial implementation. |
246 if (identical(a, b)) return a; | 248 if (identical(a, b)) return a; |
247 | 249 |
248 // TODO(ahe): Improve the following "computation"... | 250 // TODO(ahe): Improve the following "computation"... |
249 return null; | 251 return null; |
250 } | 252 } |
251 } | 253 } |
OLD | NEW |