@@ -1647,11 +1647,11 @@ class ConstructorElementImpl extends ExecutableElementImpl
16471647
16481648class ConstructorElementImpl2 extends ExecutableElementImpl2
16491649 with
1650- FragmentedExecutableElementMixin <ConstructorFragment >,
1651- FragmentedFunctionTypedElementMixin <ConstructorFragment >,
1652- FragmentedTypeParameterizedElementMixin <ConstructorFragment >,
1653- FragmentedAnnotatableElementMixin <ConstructorFragment >,
1654- FragmentedElementMixin <ConstructorFragment >,
1650+ FragmentedExecutableElementMixin <ConstructorElementImpl >,
1651+ FragmentedFunctionTypedElementMixin <ConstructorElementImpl >,
1652+ FragmentedTypeParameterizedElementMixin <ConstructorElementImpl >,
1653+ FragmentedAnnotatableElementMixin <ConstructorElementImpl >,
1654+ FragmentedElementMixin <ConstructorElementImpl >,
16551655 ConstructorElementMixin2 ,
16561656 _HasSinceSdkVersionMixin
16571657 implements ConstructorElement2 {
@@ -3769,6 +3769,9 @@ class EnumElementImpl2 extends InterfaceElementImpl2
37693769/// Common base class for all analyzer-internal classes that implement
37703770/// `ExecutableElement2` .
37713771abstract class ExecutableElement2OrMember implements ExecutableElement2 {
3772+ @override
3773+ List <FormalParameterElementMixin > get formalParameters;
3774+
37723775 @override
37733776 TypeImpl get returnType;
37743777
@@ -5189,11 +5192,11 @@ mixin FragmentedElementMixin<E extends Fragment> implements _Fragmented<E> {
51895192 }
51905193}
51915194
5192- mixin FragmentedExecutableElementMixin <E extends ExecutableFragment >
5195+ mixin FragmentedExecutableElementMixin <E extends ExecutableElementImpl >
51935196 implements FragmentedElementMixin <E > {
5194- List <FormalParameterElement > get formalParameters {
5197+ List <FormalParameterElementMixin > get formalParameters {
51955198 return firstFragment.formalParameters
5196- .map ((fragment) => fragment.element )
5199+ .map ((fragment) => fragment.asElement2 )
51975200 .toList ();
51985201 }
51995202
@@ -5235,15 +5238,13 @@ mixin FragmentedFunctionTypedElementMixin<E extends ExecutableFragment>
52355238 // TODO(augmentations): This might be wrong. The parameters need to be a
52365239 // merge of the parameters of all of the fragments, but this probably doesn't
52375240 // account for missing data (such as the parameter types).
5238- List <FormalParameterElement > get formalParameters {
5241+ List <FormalParameterElementMixin > get formalParameters {
52395242 var fragment = firstFragment;
52405243 return switch (fragment) {
5241- FunctionTypedElementImpl (: var parameters) => parameters
5242- .map ((fragment) => (fragment as FormalParameterFragment ).element)
5243- .toList (),
5244- ExecutableElementImpl (: var parameters) => parameters
5245- .map ((fragment) => (fragment as FormalParameterFragment ).element)
5246- .toList (),
5244+ FunctionTypedElementImpl (: var parameters) =>
5245+ parameters.map ((fragment) => fragment.asElement2).toList (),
5246+ ExecutableElementImpl (: var parameters) =>
5247+ parameters.map ((fragment) => fragment.asElement2).toList (),
52475248 _ => throw UnsupportedError (
52485249 'Cannot get formal parameters for ${fragment .runtimeType }' ),
52495250 };
@@ -5451,8 +5452,7 @@ class GenericFunctionTypeElementImpl extends _ExistingElementImpl
54515452 Fragment ? get enclosingFragment => enclosingElement3 as Fragment ;
54525453
54535454 @override
5454- List <FormalParameterFragment > get formalParameters =>
5455- parameters.cast <FormalParameterFragment >();
5455+ List <ParameterElementImpl > get formalParameters => parameters;
54565456
54575457 @override
54585458 String get identifier => '-' ;
@@ -5607,11 +5607,11 @@ abstract class GetterElement2OrMember
56075607
56085608class GetterElementImpl extends PropertyAccessorElementImpl2
56095609 with
5610- FragmentedExecutableElementMixin <GetterFragment >,
5611- FragmentedFunctionTypedElementMixin <GetterFragment >,
5612- FragmentedTypeParameterizedElementMixin <GetterFragment >,
5613- FragmentedAnnotatableElementMixin <GetterFragment >,
5614- FragmentedElementMixin <GetterFragment >,
5610+ FragmentedExecutableElementMixin <PropertyAccessorElementImpl >,
5611+ FragmentedFunctionTypedElementMixin <PropertyAccessorElementImpl >,
5612+ FragmentedTypeParameterizedElementMixin <PropertyAccessorElementImpl >,
5613+ FragmentedAnnotatableElementMixin <PropertyAccessorElementImpl >,
5614+ FragmentedElementMixin <PropertyAccessorElementImpl >,
56155615 _HasSinceSdkVersionMixin
56165616 implements GetterElement2OrMember {
56175617 @override
@@ -7879,7 +7879,7 @@ class LocalFunctionElementImpl extends ExecutableElementImpl2
78797879 FunctionElementImpl get firstFragment => _wrappedElement;
78807880
78817881 @override
7882- List <FormalParameterElement > get formalParameters =>
7882+ List <FormalParameterElementMixin > get formalParameters =>
78837883 _wrappedElement.formalParameters
78847884 .map ((fragment) => fragment.element)
78857885 .toList ();
@@ -8550,11 +8550,11 @@ class MethodElementImpl extends ExecutableElementImpl
85508550
85518551class MethodElementImpl2 extends ExecutableElementImpl2
85528552 with
8553- FragmentedExecutableElementMixin <MethodFragment >,
8554- FragmentedFunctionTypedElementMixin <MethodFragment >,
8555- FragmentedTypeParameterizedElementMixin <MethodFragment >,
8556- FragmentedAnnotatableElementMixin <MethodFragment >,
8557- FragmentedElementMixin <MethodFragment >,
8553+ FragmentedExecutableElementMixin <MethodElementImpl >,
8554+ FragmentedFunctionTypedElementMixin <MethodElementImpl >,
8555+ FragmentedTypeParameterizedElementMixin <MethodElementImpl >,
8556+ FragmentedAnnotatableElementMixin <MethodElementImpl >,
8557+ FragmentedElementMixin <MethodElementImpl >,
85588558 _HasSinceSdkVersionMixin
85598559 implements MethodElement2OrMember {
85608560 @override
@@ -10703,11 +10703,11 @@ abstract class SetterElement2OrMember
1070310703
1070410704class SetterElementImpl extends PropertyAccessorElementImpl2
1070510705 with
10706- FragmentedExecutableElementMixin <SetterFragment >,
10707- FragmentedFunctionTypedElementMixin <SetterFragment >,
10708- FragmentedTypeParameterizedElementMixin <SetterFragment >,
10709- FragmentedAnnotatableElementMixin <SetterFragment >,
10710- FragmentedElementMixin <SetterFragment >,
10706+ FragmentedExecutableElementMixin <PropertyAccessorElementImpl >,
10707+ FragmentedFunctionTypedElementMixin <PropertyAccessorElementImpl >,
10708+ FragmentedTypeParameterizedElementMixin <PropertyAccessorElementImpl >,
10709+ FragmentedAnnotatableElementMixin <PropertyAccessorElementImpl >,
10710+ FragmentedElementMixin <PropertyAccessorElementImpl >,
1071110711 _HasSinceSdkVersionMixin
1071210712 implements SetterElement2OrMember {
1071310713 @override
@@ -10909,11 +10909,11 @@ class SuperFormalParameterElementImpl2 extends FormalParameterElementImpl
1090910909
1091010910class TopLevelFunctionElementImpl extends ExecutableElementImpl2
1091110911 with
10912- FragmentedExecutableElementMixin <TopLevelFunctionFragment >,
10913- FragmentedFunctionTypedElementMixin <TopLevelFunctionFragment >,
10914- FragmentedTypeParameterizedElementMixin <TopLevelFunctionFragment >,
10915- FragmentedAnnotatableElementMixin <TopLevelFunctionFragment >,
10916- FragmentedElementMixin <TopLevelFunctionFragment >,
10912+ FragmentedExecutableElementMixin <FunctionElementImpl >,
10913+ FragmentedFunctionTypedElementMixin <FunctionElementImpl >,
10914+ FragmentedTypeParameterizedElementMixin <FunctionElementImpl >,
10915+ FragmentedAnnotatableElementMixin <FunctionElementImpl >,
10916+ FragmentedElementMixin <FunctionElementImpl >,
1091710917 _HasSinceSdkVersionMixin
1091810918 implements TopLevelFunctionElement {
1091910919 @override
0 commit comments