| 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('../leg.dart'); | 9 import '../dart2jslib.dart'; |
| 10 #import('../scanner/scannerlib.dart'); | 10 import '../runtime_types.dart'; |
| 11 #import('../runtime_types.dart'); | 11 import '../tree/tree.dart'; |
| 12 #import('../tree/tree.dart'); | 12 import '../util/util.dart'; |
| 13 #import('../util/util.dart'); | |
| 14 | 13 |
| 15 #source('function_set.dart'); | 14 part 'function_set.dart'; |
| 16 #source('partial_type_tree.dart'); | 15 part 'partial_type_tree.dart'; |
| 17 #source('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: Key elements are declaration elements. | 22 * Invariant: Key elements are declaration elements. |
| 24 */ | 23 */ |
| 25 Map<Element, CodeBuffer> generatedCode; | 24 Map<Element, CodeBuffer> generatedCode; |
| 26 | 25 |
| 27 /** | 26 /** |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 529 |
| 531 if (!self.isInterface() && self.isSubclassOf(other)) { | 530 if (!self.isInterface() && self.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 return false; | 536 return false; |
| 538 } | 537 } |
| 539 } | 538 } |
| OLD | NEW |