@@ -6502,14 +6502,6 @@ class MethodElementImpl extends ExecutableElementImpl implements MethodElement {
65026502 setModifier (Modifier .ABSTRACT , isAbstract);
65036503 }
65046504
6505- @override
6506- List <TypeParameterType > get allEnclosingTypeParameterTypes {
6507- if (isStatic) {
6508- return const < TypeParameterType > [];
6509- }
6510- return super .allEnclosingTypeParameterTypes;
6511- }
6512-
65136505 @override
65146506 String get displayName {
65156507 String displayName = super .displayName;
@@ -8021,14 +8013,6 @@ class PropertyAccessorElementImpl extends ExecutableElementImpl
80218013 setModifier (Modifier .ABSTRACT , isAbstract);
80228014 }
80238015
8024- @override
8025- List <TypeParameterType > get allEnclosingTypeParameterTypes {
8026- if (isStatic) {
8027- return const < TypeParameterType > [];
8028- }
8029- return super .allEnclosingTypeParameterTypes;
8030- }
8031-
80328016 @override
80338017 PropertyAccessorElement get correspondingGetter {
80348018 if (isGetter || variable == null ) {
@@ -8664,37 +8648,6 @@ abstract class TypeParameterizedElementMixin
86648648 */
86658649 List <TypeParameterType > _typeParameterTypes;
86668650
8667- /**
8668- * A cached list containing all of the type parameter types of this element,
8669- * including those declared by this element directly and those declared by any
8670- * enclosing elements, or `null` if the list has not been computed yet.
8671- */
8672- List <TypeParameterType > _allTypeParameterTypes;
8673-
8674- /**
8675- * Return all type parameter types of the element that encloses element.
8676- * Not `null` , but might be empty for top-level and static class members.
8677- */
8678- List <TypeParameterType > get allEnclosingTypeParameterTypes {
8679- return enclosingTypeParameterContext? .allTypeParameterTypes ??
8680- const < TypeParameterType > [];
8681- }
8682-
8683- /**
8684- * Return all type parameter types of this element.
8685- */
8686- List <TypeParameterType > get allTypeParameterTypes {
8687- if (_allTypeParameterTypes == null ) {
8688- _allTypeParameterTypes = < TypeParameterType > [];
8689- // The most logical order would be (enclosing, this).
8690- // But we have to have it like this to be consistent with (inconsistent
8691- // by itself) element builder for generic functions.
8692- _allTypeParameterTypes.addAll (typeParameterTypes);
8693- _allTypeParameterTypes.addAll (allEnclosingTypeParameterTypes);
8694- }
8695- return _allTypeParameterTypes;
8696- }
8697-
86988651 /**
86998652 * Get the type parameter context enclosing this one, if any.
87008653 */
0 commit comments