OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class Type implements Named, Hashable { | 5 class Type implements Named, Hashable { |
6 final String name; | 6 final String name; |
7 bool isTested; | 7 bool isTested; |
8 | 8 |
9 /** | 9 /** |
10 * For core types (int, String, etc) this is the generated type assertion | 10 * For core types (int, String, etc) this is the generated type assertion |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 } | 830 } |
831 parent = resolveType(extendsTypeRef, true); | 831 parent = resolveType(extendsTypeRef, true); |
832 if (!parent.isClass) { | 832 if (!parent.isClass) { |
833 world.error('class may not extend an interface - use implements', | 833 world.error('class may not extend an interface - use implements', |
834 typeDef.extendsTypes[0].span); | 834 typeDef.extendsTypes[0].span); |
835 } | 835 } |
836 parent.addDirectSubtype(this); | 836 parent.addDirectSubtype(this); |
837 if (_cycleInClassExtends()) { | 837 if (_cycleInClassExtends()) { |
838 world.error('class "$name" has a cycle in its inheritance chain', | 838 world.error('class "$name" has a cycle in its inheritance chain', |
839 extendsTypeRef.span); | 839 extendsTypeRef.span); |
error: old chunk mismatch |
None
OLD | NEW |