Index: pkg/compiler/lib/src/inferrer/builder.dart |
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart |
index 90493aa4398736cc1a8fd4c9f59755f592f686fd..85de96584691629e3f718161354b0a6f7ca1d3b7 100644 |
--- a/pkg/compiler/lib/src/inferrer/builder.dart |
+++ b/pkg/compiler/lib/src/inferrer/builder.dart |
@@ -1070,7 +1070,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation> |
} |
inferrer.closedWorldRefiner |
- .registerSideEffects(analyzedElement, sideEffects); |
+ .registerSideEffects(analyzedElement.declaration, sideEffects); |
assert(breaksFor.isEmpty); |
assert(continuesFor.isEmpty); |
return returnType; |