Index: pkg/compiler/lib/src/js_backend/minify_namer.dart |
diff --git a/pkg/compiler/lib/src/js_backend/minify_namer.dart b/pkg/compiler/lib/src/js_backend/minify_namer.dart |
index 8fdb82b67111805bf6ee745c47f83aff1d89e5f0..517e3bbc1b7fb0c078f0923e91efe7a914f699d0 100644 |
--- a/pkg/compiler/lib/src/js_backend/minify_namer.dart |
+++ b/pkg/compiler/lib/src/js_backend/minify_namer.dart |
@@ -350,7 +350,7 @@ class _ConstructorBodyNamingScope { |
}); |
} |
- String constructorBodyKeyFor(ConstructorBodyElement body) { |
+ String constructorBodyKeyFor(ConstructorBodyEntity body) { |
int position = _constructors.indexOf(body.constructor); |
assert(position >= 0, failedAt(body, "constructor body missing")); |
return "@constructorBody@${_startIndex + position}"; |
@@ -362,7 +362,7 @@ abstract class _MinifyConstructorBodyNamer implements Namer { |
new Map<ClassElement, _ConstructorBodyNamingScope>(); |
@override |
- jsAst.Name constructorBodyName(FunctionElement method) { |
+ jsAst.Name constructorBodyName(ConstructorBodyEntity method) { |
_ConstructorBodyNamingScope scope = new _ConstructorBodyNamingScope( |
method.enclosingClass, _constructorBodyScopes); |
String key = scope.constructorBodyKeyFor(method); |