Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: pkg/compiler/lib/src/universe/element_world_builder.dart

Issue 2804293002: Add MemberEntity.isAbstract and use MemberEntity in function_set.dart (Closed)
Patch Set: Inference doesn't like MemberEntity Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/world_builder.dart ('k') | pkg/compiler/lib/src/universe/function_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698