@@ -131,7 +131,7 @@ mixin ElementsTypesMixin {
131131    fragment.isAbstract =  isAbstract;
132132    fragment.isAugmentation =  isAugmentation;
133133    fragment.isSealed =  isSealed;
134-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
134+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
135135    fragment.typeParameters =  typeParameters.map ((e) =>  e.asElement).toList ();
136136    fragment.supertype =  superType ??  typeProvider.objectType;
137137    fragment.interfaces =  interfaces;
@@ -158,7 +158,7 @@ mixin ElementsTypesMixin {
158158    fragment.isAbstract =  isAbstract;
159159    fragment.isAugmentation =  isAugmentation;
160160    fragment.isSealed =  isSealed;
161-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
161+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
162162    fragment.typeParameters = 
163163        typeParameters.map ((e) =>  e.firstFragment).toList ();
164164    fragment.supertype =  superType ??  typeProvider.objectType;
@@ -194,7 +194,7 @@ mixin ElementsTypesMixin {
194194  }) {
195195    var  fragment =  EnumFragmentImpl (name:  name, firstTokenOffset:  null );
196196    EnumElementImpl (Reference .root (), fragment);
197-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
197+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
198198    fragment.fields =  constants;
199199    return  fragment;
200200  }
@@ -205,7 +205,7 @@ mixin ElementsTypesMixin {
205205  }) {
206206    var  fragment =  EnumFragmentImpl (name:  name, firstTokenOffset:  null );
207207    var  element =  EnumElementImpl (Reference .root (), fragment);
208-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
208+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
209209    fragment.fields =  constants;
210210    return  element;
211211  }
@@ -226,7 +226,7 @@ mixin ElementsTypesMixin {
226226    ExtensionElementImpl (Reference .root (), element);
227227    element.element.extendedType =  extendedType;
228228    element.isAugmentation =  isAugmentation;
229-     element.enclosingElement  =  testLibrary.definingCompilationUnit;
229+     element.enclosingFragment  =  testLibrary.definingCompilationUnit;
230230    element.typeParameters =  typeParameters;
231231    element.methods =  methods;
232232    return  element;
@@ -243,7 +243,7 @@ mixin ElementsTypesMixin {
243243      name:  name,
244244      firstTokenOffset:  null ,
245245    );
246-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
246+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
247247    fragment.typeParameters =  typeParameters.map ((e) =>  e.asElement).toList ();
248248    fragment.interfaces =  interfaces;
249249
@@ -276,7 +276,7 @@ mixin ElementsTypesMixin {
276276      name:  name,
277277      firstTokenOffset:  null ,
278278    );
279-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
279+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
280280    fragment.typeParameters =  typeParameters.map ((e) =>  e.asElement).toList ();
281281    fragment.interfaces =  interfaces;
282282
@@ -488,7 +488,7 @@ mixin ElementsTypesMixin {
488488  }) {
489489    var  fragment =  MixinFragmentImpl (name:  name, firstTokenOffset:  null );
490490    fragment.isAugmentation =  isAugmentation;
491-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
491+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
492492    fragment.typeParameters =  typeParameters.map ((e) =>  e.asElement).toList ();
493493    fragment.superclassConstraints =  constraints ??  [typeProvider.objectType];
494494    fragment.interfaces =  interfaces;
@@ -507,7 +507,7 @@ mixin ElementsTypesMixin {
507507  }) {
508508    var  fragment =  MixinFragmentImpl (name:  name, firstTokenOffset:  null );
509509    fragment.isAugmentation =  isAugmentation;
510-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
510+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
511511    fragment.typeParameters =  typeParameters.map ((e) =>  e.asElement).toList ();
512512    fragment.superclassConstraints =  constraints ??  [typeProvider.objectType];
513513    fragment.interfaces =  interfaces;
@@ -657,7 +657,7 @@ mixin ElementsTypesMixin {
657657    required  TypeImpl  aliasedType,
658658  }) {
659659    var  fragment =  TypeAliasFragmentImpl (name:  name, firstTokenOffset:  null );
660-     fragment.enclosingElement  =  testLibrary.definingCompilationUnit;
660+     fragment.enclosingFragment  =  testLibrary.definingCompilationUnit;
661661    fragment.typeParameters =  typeParameters.map ((e) =>  e.asElement).toList ();
662662
663663    var  element =  TypeAliasElementImpl (Reference .root (), fragment);
0 commit comments