Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 272473b

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Remove getters allowing access to all enclosing type parameter types.
These getters are private to the analyzer and not used by it. Change-Id: I203af68124668244dd204bff0cf7a3de4de8e9cd Reviewed-on: https://dart-review.googlesource.com/74967 Reviewed-by: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Paul Berry <[email protected]>
1 parent f5ec9b0 commit 272473b

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

pkg/analyzer/lib/src/dart/element/element.dart

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)