| 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 universe; | 5 library universe; |
| 6 | 6 |
| 7 import '../closure.dart'; | 7 import '../closure.dart'; |
| 8 import '../elements/elements.dart'; | 8 import '../elements/elements.dart'; |
| 9 import '../dart2jslib.dart'; | 9 import '../dart2jslib.dart'; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| 11 import '../tree/tree.dart'; | 11 import '../tree/tree.dart'; |
| 12 import '../util/util.dart'; | 12 import '../util/util.dart'; |
| 13 import '../js/js.dart' as js; | 13 import '../js/js.dart' as js; |
| 14 | 14 |
| 15 part 'function_set.dart'; | 15 part 'function_set.dart'; |
| 16 part 'partial_type_tree.dart'; | |
| 17 part 'selector_map.dart'; | 16 part 'selector_map.dart'; |
| 18 | 17 |
| 19 class Universe { | 18 class Universe { |
| 20 /** | 19 /** |
| 21 * Documentation wanted -- johnniwinther | 20 * Documentation wanted -- johnniwinther |
| 22 * | 21 * |
| 23 * Invariant: Elements are declaration elements. | 22 * Invariant: Elements are declaration elements. |
| 24 */ | 23 */ |
| 25 // TODO(karlklose): these sets should be merged. | 24 // TODO(karlklose): these sets should be merged. |
| 26 final Set<ClassElement> instantiatedClasses; | 25 final Set<ClassElement> instantiatedClasses; |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 if (cls.isSubclassOf(other)) { | 530 if (cls.isSubclassOf(other)) { |
| 532 // Resolve an invocation of [element.name] on [self]. If it | 531 // Resolve an invocation of [element.name] on [self]. If it |
| 533 // is found, this selector is a candidate. | 532 // is found, this selector is a candidate. |
| 534 return hasElementIn(self, element) && appliesUntyped(element, compiler); | 533 return hasElementIn(self, element) && appliesUntyped(element, compiler); |
| 535 } | 534 } |
| 536 } | 535 } |
| 537 | 536 |
| 538 return false; | 537 return false; |
| 539 } | 538 } |
| 540 } | 539 } |
| OLD | NEW |