OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of world_builder; | 5 part of world_builder; |
6 | 6 |
7 /// [ResolutionEnqueuerWorldBuilder] based on the [Element] model. | 7 /// [ResolutionEnqueuerWorldBuilder] based on the [Element] model. |
8 class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase { | 8 class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase { |
9 /// Used for testing the new more precise computation of instantiated types | 9 /// Used for testing the new more precise computation of instantiated types |
10 /// and classes. | 10 /// and classes. |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 commonElements: _commonElements, | 230 commonElements: _commonElements, |
231 resolutionWorldBuilder: this, | 231 resolutionWorldBuilder: this, |
232 functionSetBuilder: _allFunctions, | 232 functionSetBuilder: _allFunctions, |
233 allTypedefs: _allTypedefs, | 233 allTypedefs: _allTypedefs, |
234 mixinUses: _mixinUses, | 234 mixinUses: _mixinUses, |
235 typesImplementedBySubclasses: typesImplementedBySubclasses, | 235 typesImplementedBySubclasses: typesImplementedBySubclasses, |
236 classHierarchyNodes: _classHierarchyNodes, | 236 classHierarchyNodes: _classHierarchyNodes, |
237 classSets: _classSets); | 237 classSets: _classSets); |
238 } | 238 } |
239 | 239 |
240 void registerUsedElement(MemberElement element) { | |
241 if (element.isInstanceMember && !element.isAbstract) { | |
242 _allFunctions.add(element); | |
243 } | |
244 } | |
245 | |
246 @override | 240 @override |
247 void registerMixinUse( | 241 void registerMixinUse( |
248 MixinApplicationElement mixinApplication, ClassElement mixin) { | 242 MixinApplicationElement mixinApplication, ClassElement mixin) { |
249 assert(mixin.isDeclaration); | 243 assert(mixin.isDeclaration); |
250 super.registerMixinUse(mixinApplication, mixin); | 244 super.registerMixinUse(mixinApplication, mixin); |
251 } | 245 } |
252 } | 246 } |
OLD | NEW |