OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer2dart.element_converter; | 5 part of analyzer2dart.element_converter; |
6 | 6 |
7 | 7 |
8 /// Base [dart2js.Element] implementation for converted analyzer elements. | 8 /// Base [dart2js.Element] implementation for converted analyzer elements. |
9 class ElementY extends dart2js.Element { | 9 class ElementY extends dart2js.Element { |
10 final ElementConverter converter; | 10 final ElementConverter converter; |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 @override | 639 @override |
640 dart2js.DartType get supertype => unsupported('supertype'); | 640 dart2js.DartType get supertype => unsupported('supertype'); |
641 | 641 |
642 @override | 642 @override |
643 int get supertypeLoadState => unsupported('supertypeLoadState'); | 643 int get supertypeLoadState => unsupported('supertypeLoadState'); |
644 | 644 |
645 @override | 645 @override |
646 validateConstructorLookupResults(selector, result, noMatch) { | 646 validateConstructorLookupResults(selector, result, noMatch) { |
647 unsupported('validateConstructorLookupResults'); | 647 unsupported('validateConstructorLookupResults'); |
648 } | 648 } |
| 649 |
| 650 @override |
| 651 bool get isEnumClass => unsupported('isEnum'); |
649 } | 652 } |
650 | 653 |
651 class TypedefElementY extends TypeDeclarationElementY | 654 class TypedefElementY extends TypeDeclarationElementY |
652 implements dart2js.TypedefElement { | 655 implements dart2js.TypedefElement { |
653 | 656 |
654 analyzer.FunctionTypeAliasElement get element => super.element; | 657 analyzer.FunctionTypeAliasElement get element => super.element; |
655 | 658 |
656 dart2js.ElementKind get kind => dart2js.ElementKind.TYPEDEF; | 659 dart2js.ElementKind get kind => dart2js.ElementKind.TYPEDEF; |
657 | 660 |
658 TypedefElementY(ElementConverter converter, | 661 TypedefElementY(ElementConverter converter, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 | 776 |
774 @override | 777 @override |
775 bool get isRedirectingFactory => unsupported('isRedirectingFactory'); | 778 bool get isRedirectingFactory => unsupported('isRedirectingFactory'); |
776 | 779 |
777 @override | 780 @override |
778 get nestedClosures => unsupported('nestedClosures'); | 781 get nestedClosures => unsupported('nestedClosures'); |
779 | 782 |
780 @override | 783 @override |
781 get type => unsupported('type'); | 784 get type => unsupported('type'); |
782 } | 785 } |
OLD | NEW |