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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 413 |
414 @override | 414 @override |
415 bool get isConst => false; | 415 bool get isConst => false; |
416 | 416 |
417 LocalFunctionElementY(ElementConverter converter, | 417 LocalFunctionElementY(ElementConverter converter, |
418 analyzer.FunctionElement element) | 418 analyzer.FunctionElement element) |
419 : super(converter, element); | 419 : super(converter, element); |
420 } | 420 } |
421 | 421 |
422 class ParameterElementY extends ElementY | 422 class ParameterElementY extends ElementY |
423 with AnalyzableElementY, AstElementY | 423 with AnalyzableElementY, AstElementY, VariableElementMixin |
424 implements dart2js.ParameterElement { | 424 implements dart2js.ParameterElement { |
425 | 425 |
426 analyzer.ParameterElement get element => super.element; | 426 analyzer.ParameterElement get element => super.element; |
427 | 427 |
428 @override | 428 @override |
429 dart2js.ElementKind get kind => dart2js.ElementKind.PARAMETER; | 429 dart2js.ElementKind get kind => dart2js.ElementKind.PARAMETER; |
430 | 430 |
431 @override | 431 @override |
432 dart2js.DartType get type => converter.convertType(element.type); | 432 dart2js.DartType get type => converter.convertType(element.type); |
433 | 433 |
(...skipping 18 matching lines...) Expand all Loading... |
452 assert(!element.isInitializingFormal); | 452 assert(!element.isInitializingFormal); |
453 } | 453 } |
454 | 454 |
455 @override | 455 @override |
456 get executableContext => unsupported('executableContext'); | 456 get executableContext => unsupported('executableContext'); |
457 | 457 |
458 @override | 458 @override |
459 get functionDeclaration => unsupported('functionDeclaration'); | 459 get functionDeclaration => unsupported('functionDeclaration'); |
460 | 460 |
461 @override | 461 @override |
462 get initializer => unsupported('initializer'); | |
463 | |
464 @override | |
465 get memberContext => unsupported('memberContext'); | |
466 | |
467 @override | |
468 get functionSignature => unsupported('functionSignature'); | 462 get functionSignature => unsupported('functionSignature'); |
469 } | 463 } |
470 | 464 |
471 class TypeDeclarationElementY extends ElementY | 465 class TypeDeclarationElementY extends ElementY |
472 with AnalyzableElementY, AstElementY | 466 with AnalyzableElementY, AstElementY |
473 implements dart2js.TypeDeclarationElement { | 467 implements dart2js.TypeDeclarationElement { |
474 | 468 |
475 TypeDeclarationElementY(ElementConverter converter, | 469 TypeDeclarationElementY(ElementConverter converter, |
476 analyzer.Element element) | 470 analyzer.Element element) |
477 : super(converter, element); | 471 : super(converter, element); |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 get functionSignature => unsupported('functionSignature'); | 705 get functionSignature => unsupported('functionSignature'); |
712 } | 706 } |
713 | 707 |
714 abstract class VariableElementMixin | 708 abstract class VariableElementMixin |
715 implements ElementY, dart2js.VariableElement { | 709 implements ElementY, dart2js.VariableElement { |
716 @override | 710 @override |
717 get initializer => unsupported('initializer'); | 711 get initializer => unsupported('initializer'); |
718 | 712 |
719 @override | 713 @override |
720 get memberContext => unsupported('memberContext'); | 714 get memberContext => unsupported('memberContext'); |
| 715 |
| 716 @override |
| 717 get constant => unsupported('constant'); |
721 } | 718 } |
722 | 719 |
723 class TopLevelVariableElementY extends ElementY | 720 class TopLevelVariableElementY extends ElementY |
724 with AnalyzableElementY, | 721 with AnalyzableElementY, |
725 AstElementY, | 722 AstElementY, |
726 TopLevelElementMixin, | 723 TopLevelElementMixin, |
727 VariableElementMixin, | 724 VariableElementMixin, |
728 MemberElementMixin | 725 MemberElementMixin |
729 implements dart2js.FieldElement { | 726 implements dart2js.FieldElement { |
730 | 727 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 get definingConstructor => unsupported('definingConstructor'); | 851 get definingConstructor => unsupported('definingConstructor'); |
855 | 852 |
856 @override | 853 @override |
857 get effectiveTarget => unsupported('effectiveTarget'); | 854 get effectiveTarget => unsupported('effectiveTarget'); |
858 | 855 |
859 @override | 856 @override |
860 get immediateRedirectionTarget => unsupported('immediateRedirectionTarget'); | 857 get immediateRedirectionTarget => unsupported('immediateRedirectionTarget'); |
861 | 858 |
862 @override | 859 @override |
863 get nestedClosures => unsupported('nestedClosures'); | 860 get nestedClosures => unsupported('nestedClosures'); |
| 861 |
| 862 @override |
| 863 get constantConstructor => unsupported('constantConstructor'); |
| 864 |
| 865 @override |
| 866 get isFromEnvironmentConstructor { |
| 867 unsupported('isFromEnvironmentConstructor'); |
| 868 } |
864 } | 869 } |
865 | 870 |
866 class InstanceMethodElementY extends ElementY | 871 class InstanceMethodElementY extends ElementY |
867 with AnalyzableElementY, | 872 with AnalyzableElementY, |
868 AstElementY, | 873 AstElementY, |
869 FunctionElementMixin, | 874 FunctionElementMixin, |
870 ClassMemberMixin, | 875 ClassMemberMixin, |
871 MemberElementMixin | 876 MemberElementMixin |
872 implements dart2js.MethodElement { | 877 implements dart2js.MethodElement { |
873 | 878 |
(...skipping 18 matching lines...) Expand all Loading... |
892 analyzer.MethodElement element) | 897 analyzer.MethodElement element) |
893 : super(converter, element); | 898 : super(converter, element); |
894 | 899 |
895 @override | 900 @override |
896 get nestedClosures => unsupported('nestedClosures'); | 901 get nestedClosures => unsupported('nestedClosures'); |
897 } | 902 } |
898 | 903 |
899 abstract class MemberElementMixin implements dart2js.MemberElement { | 904 abstract class MemberElementMixin implements dart2js.MemberElement { |
900 dart2js.Name get memberName => new dart2js.Name(name, library); | 905 dart2js.Name get memberName => new dart2js.Name(name, library); |
901 } | 906 } |
OLD | NEW |