Chromium Code Reviews| 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 '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 428 } | 428 } |
| 429 | 429 |
| 430 if (other.implementsInterface(self) | 430 if (other.implementsInterface(self) |
| 431 || other.isSubclassOf(self) | 431 || other.isSubclassOf(self) |
| 432 || compiler.world.hasAnySubclassThatImplements(other, receiverType)) { | 432 || compiler.world.hasAnySubclassThatImplements(other, receiverType)) { |
| 433 return appliesUntyped(element, compiler); | 433 return appliesUntyped(element, compiler); |
| 434 } | 434 } |
| 435 | 435 |
| 436 // If [self] is a subclass of [other], it inherits the | 436 // If [self] is a subclass of [other], it inherits the |
| 437 // implementation of [element]. | 437 // implementation of [element]. |
| 438 if (self.isSubclassOf(other)) { | 438 ClassElement classySelf = self; |
|
ngeoffray
2012/11/21 10:22:11
classySelf -> cls
karlklose
2012/11/21 11:33:32
Done.
ahe
2012/11/22 16:11:30
LOL!
| |
| 439 if (classySelf.isSubclassOf(other)) { | |
| 439 // Resolve an invocation of [element.name] on [self]. If it | 440 // Resolve an invocation of [element.name] on [self]. If it |
| 440 // is found, this selector is a candidate. | 441 // is found, this selector is a candidate. |
| 441 return hasElementIn(self, element) && appliesUntyped(element, compiler); | 442 return hasElementIn(self, element) && appliesUntyped(element, compiler); |
| 442 } | 443 } |
| 443 | 444 |
| 444 return false; | 445 return false; |
| 445 } | 446 } |
| 446 } | 447 } |
| OLD | NEW |