Index: pkg/compiler/lib/src/use_unused_api.dart |
diff --git a/pkg/compiler/lib/src/use_unused_api.dart b/pkg/compiler/lib/src/use_unused_api.dart |
index dd46337100783e70bc3c8ece0334029c79600347..6cceb838f9fe8c62339684cf55623977f3869e7b 100644 |
--- a/pkg/compiler/lib/src/use_unused_api.dart |
+++ b/pkg/compiler/lib/src/use_unused_api.dart |
@@ -68,7 +68,7 @@ void main(List<String> arguments) { |
useSsa(null); |
useIo(null, null); |
usedByTests(); |
- useElements(null, null, null, null, null); |
+ useElements(); |
useIr(null, null); |
useCompiler(null); |
useTypes(); |
@@ -245,17 +245,19 @@ usedByTests() { |
} |
useElements( |
- elements.ClassElement e, |
- elements.Name n, |
- modelx.FieldElementX f, |
- PartialClassElement pce, |
- PartialFunctionElement pfe) { |
+ [elements.ClassElement e, |
+ elements.Name n, |
+ modelx.FieldElementX f, |
+ PartialClassElement pce, |
+ PartialFunctionElement pfe, |
+ elements.LibraryElement l]) { |
e.lookupClassMember(null); |
e.lookupInterfaceMember(null); |
n.isAccessibleFrom(null); |
f.reuseElement(); |
pce.copyWithEnclosing(null); |
pfe.copyWithEnclosing(null); |
+ l.forEachImport(null); |
} |
useIr(ir_builder.IrBuilderTask task, |