OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of types; | 5 part of types; |
6 | 6 |
7 /** | 7 /** |
8 * A flat type mask is a type mask that has been flatten to contain a | 8 * A flat type mask is a type mask that has been flatten to contain a |
9 * base type. | 9 * base type. |
10 */ | 10 */ |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 if (x.isExact) { | 693 if (x.isExact) { |
694 return null; | 694 return null; |
695 } else if (x.isSubclass) { | 695 } else if (x.isSubclass) { |
696 return classWorld.subclassesOf(element); | 696 return classWorld.subclassesOf(element); |
697 } else { | 697 } else { |
698 assert(x.isSubtype); | 698 assert(x.isSubtype); |
699 return classWorld.subtypesOf(element); | 699 return classWorld.subtypesOf(element); |
700 } | 700 } |
701 } | 701 } |
702 } | 702 } |
OLD | NEW |