| Index: pkg/kernel/lib/binary/ast_to_binary.dart
|
| diff --git a/pkg/kernel/lib/binary/ast_to_binary.dart b/pkg/kernel/lib/binary/ast_to_binary.dart
|
| index def8885a42ee5a655427657b47430220e508ab12..98582c98cfd46998fb180aaf25a994414e376f56 100644
|
| --- a/pkg/kernel/lib/binary/ast_to_binary.dart
|
| +++ b/pkg/kernel/lib/binary/ast_to_binary.dart
|
| @@ -1035,12 +1035,14 @@ class BinaryPrinter extends Visitor {
|
| }
|
| }
|
|
|
| +typedef bool LibraryFilter(Library _);
|
| +
|
| /// A [LibraryFilteringBinaryPrinter] can write a subset of libraries.
|
| ///
|
| /// This printer writes a Kernel binary but includes only libraries that match a
|
| /// predicate.
|
| class LibraryFilteringBinaryPrinter extends BinaryPrinter {
|
| - final Function predicate;
|
| + final LibraryFilter predicate;
|
|
|
| LibraryFilteringBinaryPrinter(
|
| Sink<List<int>> sink, bool predicate(Library library))
|
|
|