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 '../dart2jslib.dart' hide Selector, TypedSelector; | 7 import '../dart2jslib.dart' hide Selector, TypedSelector; |
8 import '../elements/elements.dart'; | 8 import '../elements/elements.dart'; |
9 import '../inferrer/type_graph_inferrer.dart' show TypeGraphInferrer; | 9 import '../inferrer/type_graph_inferrer.dart' show TypeGraphInferrer; |
10 import '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 TypeMask guaranteedType = | 327 TypeMask guaranteedType = |
328 typesInferrer.getTypeOfSelector(selector); | 328 typesInferrer.getTypeOfSelector(selector); |
329 return (concreteTypesInferrer == null) | 329 return (concreteTypesInferrer == null) |
330 ? guaranteedType | 330 ? guaranteedType |
331 : intersection(guaranteedType, | 331 : intersection(guaranteedType, |
332 concreteTypesInferrer.getTypeOfSelector(selector), | 332 concreteTypesInferrer.getTypeOfSelector(selector), |
333 selector); | 333 selector); |
334 }); | 334 }); |
335 } | 335 } |
336 } | 336 } |
OLD | NEW |