55import 'package:kernel/ast.dart' ;
66import 'package:kernel/class_hierarchy.dart' ;
77
8+ import '../base/uri_offset.dart' ;
89import '../builder/builder.dart' ;
910import '../builder/constructor_builder.dart' ;
1011import '../builder/declaration_builders.dart' ;
@@ -97,16 +98,16 @@ mixin DillFieldBuilderMixin implements DillMemberBuilder, PropertyBuilder {
9798 List <ClassMember >? _localSetters;
9899
99100 @override
100- List <ClassMember > get localMembers =>
101- _localMembers ?? = ! member .isInternalImplementation
102- ? [new DillClassMember (this , ClassMemberKind .Getter )]
103- : const [];
101+ List <ClassMember > get localMembers => _localMembers ?? = ! member
102+ .isInternalImplementation
103+ ? [new DillClassMember (this , ClassMemberKind .Getter , getterUriOffset ! )]
104+ : const [];
104105
105106 @override
106- List <ClassMember > get localSetters =>
107- _localSetters ?? = hasSetter && ! member.isInternalImplementation
108- ? [new DillClassMember (this , ClassMemberKind .Setter )]
109- : const [];
107+ List <ClassMember > get localSetters => _localSetters ?? = hasSetter &&
108+ ! member.isInternalImplementation
109+ ? [new DillClassMember (this , ClassMemberKind .Setter , setterUriOffset ! )]
110+ : const [];
110111}
111112
112113mixin DillGetterBuilderMixin implements DillMemberBuilder , PropertyBuilder {
@@ -135,13 +136,17 @@ mixin DillGetterBuilderMixin implements DillMemberBuilder, PropertyBuilder {
135136 @override
136137 NamedBuilder ? get setable => null ;
137138
139+ @override
140+ // Coverage-ignore(suite): Not run.
141+ UriOffsetLength ? get setterUriOffset => null ;
142+
138143 List <ClassMember >? _localMembers;
139144
140145 @override
141- List <ClassMember > get localMembers =>
142- _localMembers ?? = ! member .isInternalImplementation
143- ? [new DillClassMember (this , ClassMemberKind .Getter )]
144- : const [];
146+ List <ClassMember > get localMembers => _localMembers ?? = ! member
147+ .isInternalImplementation
148+ ? [new DillClassMember (this , ClassMemberKind .Getter , getterUriOffset ! )]
149+ : const [];
145150
146151 @override
147152 List <ClassMember > get localSetters => const [];
@@ -177,16 +182,20 @@ mixin DillSetterBuilderMixin implements DillMemberBuilder, PropertyBuilder {
177182 @override
178183 NamedBuilder get setable => this ;
179184
185+ @override
186+ // Coverage-ignore(suite): Not run.
187+ UriOffsetLength ? get getterUriOffset => null ;
188+
180189 List <ClassMember >? _localSetters;
181190
182191 @override
183192 List <ClassMember > get localMembers => const [];
184193
185194 @override
186- List <ClassMember > get localSetters =>
187- _localSetters ?? = ! member .isInternalImplementation
188- ? [new DillClassMember (this , ClassMemberKind .Setter )]
189- : const [];
195+ List <ClassMember > get localSetters => _localSetters ?? = ! member
196+ .isInternalImplementation
197+ ? [new DillClassMember (this , ClassMemberKind .Setter , setterUriOffset ! )]
198+ : const [];
190199}
191200
192201mixin DillMethodBuilderMixin implements DillMemberBuilder , MethodBuilder {
@@ -212,10 +221,12 @@ mixin DillMethodBuilderMixin implements DillMemberBuilder, MethodBuilder {
212221
213222 List <ClassMember >? _localMembers;
214223
224+ UriOffsetLength get uriOffset;
225+
215226 @override
216227 List <ClassMember > get localMembers =>
217228 _localMembers ?? = ! member.isInternalImplementation
218- ? [new DillClassMember (this , ClassMemberKind .Method )]
229+ ? [new DillClassMember (this , ClassMemberKind .Method , uriOffset )]
219230 : const [];
220231
221232 @override
@@ -252,10 +263,12 @@ mixin DillOperatorBuilderMixin implements DillMemberBuilder, MethodBuilder {
252263
253264 List <ClassMember >? _localMembers;
254265
266+ UriOffsetLength get uriOffset;
267+
255268 @override
256269 List <ClassMember > get localMembers =>
257270 _localMembers ?? = ! member.isInternalImplementation
258- ? [new DillClassMember (this , ClassMemberKind .Method )]
271+ ? [new DillClassMember (this , ClassMemberKind .Method , uriOffset )]
259272 : const [];
260273
261274 @override
0 commit comments