Index: pkg/front_end/lib/src/fasta/dill/dill_loader.dart |
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_loader.dart b/pkg/front_end/lib/src/fasta/dill/dill_loader.dart |
index 1b843c94b32eef8ee9207d59f7675b99755f235c..0206c29abd002b54274e981bdcd35713ce74a783 100644 |
--- a/pkg/front_end/lib/src/fasta/dill/dill_loader.dart |
+++ b/pkg/front_end/lib/src/fasta/dill/dill_loader.dart |
@@ -13,18 +13,17 @@ import '../target_implementation.dart' show TargetImplementation; |
import 'dill_library_builder.dart' show DillLibraryBuilder; |
class DillLoader extends Loader<Library> { |
- Program program; |
+ /// Source targets are compiled against these binary libraries. |
+ final libraries = <Library>[]; |
ahe
2017/05/15 09:08:44
Please add a type.
|
DillLoader(TargetImplementation target) : super(target); |
/// Append compiled libraries from the given [program]. If the [filter] is |
/// provided, append only libraries whose [Uri] is accepted by the [filter]. |
void appendLibraries(Program program, [bool filter(Uri uri)]) { |
- this.program ??= new Program(); |
- program.unbindCanonicalNames(); |
for (Library library in program.libraries) { |
if (filter == null || filter(library.importUri)) { |
- this.program.libraries.add(library); |
+ libraries.add(library); |
read(library.importUri).library = library; |
} |
} |