Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: pkg/front_end/lib/src/fasta/import.dart

Issue 2803833003: Small steps towards deferred loading. (Closed)
Patch Set: Tweak status file. Some of the compile-time errors result in passing tests. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/import.dart
diff --git a/pkg/front_end/lib/src/fasta/import.dart b/pkg/front_end/lib/src/fasta/import.dart
index 9c5b205dc0fa8a65b9c9c5fcb6f3a9413a3684f4..3753b7fd99aaa0a43c48d6c9e1c1331cb8c53fe2 100644
--- a/pkg/front_end/lib/src/fasta/import.dart
+++ b/pkg/front_end/lib/src/fasta/import.dart
@@ -17,6 +17,8 @@ class Import {
/// The library being imported.
final LibraryBuilder imported;
+ final bool deferred;
+
final String prefix;
final List<Combinator> combinators;
@@ -25,8 +27,8 @@ class Import {
final int prefixCharOffset;
- Import(this.importer, this.imported, this.prefix, this.combinators,
- this.charOffset, this.prefixCharOffset);
+ Import(this.importer, this.imported, this.deferred, this.prefix,
+ this.combinators, this.charOffset, this.prefixCharOffset);
Uri get fileUri => importer.fileUri;
@@ -38,7 +40,8 @@ class Import {
importer.addToScope(name, member, charOffset, true);
};
} else {
- prefix = new PrefixBuilder(this.prefix, importer, prefixCharOffset);
+ prefix =
+ new PrefixBuilder(this.prefix, deferred, importer, prefixCharOffset);
add = (String name, Builder member) {
if (member.isSetter) {
prefix.exports.setters[name] = member;
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/prefix_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698