@@ -5359,6 +5359,9 @@ abstract class InstanceElementImpl2 extends ElementImpl2
53595359 @override
53605360 List <PropertyAccessorElement > accessors = [];
53615361
5362+ @override
5363+ List <MethodElement > methods = [];
5364+
53625365 @override
53635366 List <MethodElementImpl2 > methods2 = [];
53645367
@@ -5428,42 +5431,6 @@ abstract class InstanceElementImpl2 extends ElementImpl2
54285431 @override
54295432 Metadata get metadata2 => firstFragment.metadata2;
54305433
5431- @override
5432- List <MethodElement > get methods {
5433- return methods2.map ((element) {
5434- var firstTypeParameters = firstFragment.typeParameters;
5435-
5436- var lastFragment = element.lastFragment;
5437- var lastInstance = lastFragment.enclosingFragment;
5438- if (identical (lastInstance, firstFragment)) {
5439- return lastFragment;
5440- }
5441-
5442- var lastTypeParameters = lastInstance.typeParameters2;
5443- if (firstTypeParameters.isEmpty && lastTypeParameters.isEmpty) {
5444- return lastFragment;
5445- }
5446-
5447- MapSubstitution toFirstFragment;
5448- if (lastTypeParameters.length == firstTypeParameters.length) {
5449- toFirstFragment = Substitution .fromPairs (
5450- lastTypeParameters,
5451- firstTypeParameters.instantiateNone (),
5452- );
5453- } else {
5454- toFirstFragment = Substitution .fromPairs (
5455- lastTypeParameters,
5456- List .filled (
5457- lastTypeParameters.length,
5458- InvalidTypeImpl .instance,
5459- ),
5460- );
5461- }
5462-
5463- return MethodMember (lastFragment, toFirstFragment, Substitution .empty);
5464- }).toList ();
5465- }
5466-
54675434 @override
54685435 String ? get name3 => firstFragment.name;
54695436
@@ -7699,8 +7666,8 @@ class MethodElementImpl extends ExecutableElementImpl
76997666 }
77007667
77017668 @override
7702- InstanceElementImpl get enclosingFragment =>
7703- enclosingElement3 as InstanceElementImpl ;
7669+ InstanceFragment ? get enclosingFragment =>
7670+ enclosingElement3 as InstanceFragment ;
77047671
77057672 /// Set whether this class is abstract.
77067673 set isAbstract (bool isAbstract) {
@@ -7733,7 +7700,7 @@ class MethodElementImpl extends ExecutableElementImpl
77337700 }
77347701
77357702 @override
7736- MethodElementImpl ? get nextFragment => augmentation;
7703+ MethodFragment ? get nextFragment => augmentation;
77377704
77387705 @override
77397706 Element get nonSynthetic {
@@ -7744,7 +7711,7 @@ class MethodElementImpl extends ExecutableElementImpl
77447711 }
77457712
77467713 @override
7747- MethodElementImpl ? get previousFragment => augmentationTarget;
7714+ MethodFragment ? get previousFragment => augmentationTarget;
77487715
77497716 @override
77507717 T ? accept <T >(ElementVisitor <T > visitor) => visitor.visitMethodElement (this );
@@ -7785,17 +7752,6 @@ class MethodElementImpl2 extends ExecutableElementImpl2
77857752 @override
77867753 ElementKind get kind => ElementKind .METHOD ;
77877754
7788- MethodElementImpl get lastFragment {
7789- var lastFragment = firstFragment;
7790- while (true ) {
7791- if (lastFragment.nextFragment case var nextFragment? ) {
7792- lastFragment = nextFragment;
7793- } else {
7794- return lastFragment;
7795- }
7796- }
7797- }
7798-
77997755 @override
78007756 T ? accept2 <T >(ElementVisitor2 <T > visitor) {
78017757 return visitor.visitMethodElement (this );
@@ -10650,8 +10606,8 @@ mixin TypeParameterizedElementMixin on ElementImpl
1065010606 }
1065110607
1065210608 @override
10653- List <TypeParameterElementImpl > get typeParameters2 =>
10654- typeParameters.cast <TypeParameterElementImpl >();
10609+ List <TypeParameterFragment > get typeParameters2 =>
10610+ typeParameters.cast <TypeParameterFragment >();
1065510611
1065610612 List <TypeParameterElement > get typeParameters_unresolved {
1065710613 return _typeParameters;
0 commit comments