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); |