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

Unified Diff: pkg/compiler/lib/src/universe/element_world_builder.dart

Issue 2807593002: Use entities in impact transformers. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/universe/element_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/element_world_builder.dart b/pkg/compiler/lib/src/universe/element_world_builder.dart
index 39ed5e5bf63d25f59e2c5270c666852cd9c676c9..89bd2cbccacf267a4d5ebdaa2b32b4d7445d5745 100644
--- a/pkg/compiler/lib/src/universe/element_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/element_world_builder.dart
@@ -90,15 +90,7 @@ class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase {
}
void registerStaticUse(StaticUse staticUse, MemberUsedCallback memberUsed) {
- if (staticUse.kind == StaticUseKind.CLOSURE) {
- LocalFunctionElement localFunction = staticUse.element;
- if (localFunction.type.containsTypeVariables) {
- localFunctionsWithFreeTypeVariables.add(localFunction);
- }
- localFunctions.add(staticUse.element);
- return;
- }
- MemberElement element = staticUse.element;
+ Element element = staticUse.element;
assert(invariant(element, element.isDeclaration,
message: "Element ${element} is not the declaration."));
super.registerStaticUse(staticUse, memberUsed);
« no previous file with comments | « pkg/compiler/lib/src/ssa/type_builder.dart ('k') | pkg/compiler/lib/src/universe/resolution_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698