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

Unified Diff: pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart

Issue 2882893002: Store Typedef(s) in kernel when parsing with Fasta, deserilize in DillLibraryBuilder. (Closed)
Patch Set: Add the new file. Created 3 years, 7 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
« no previous file with comments | « pkg/analyzer/lib/src/fasta/mock_element.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart b/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart
index 5854e6f9326dd02685ae3a8968c93468284ec69c..76be7d3b110afaf66bc2a981da6faa3001a0588d 100644
--- a/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart
@@ -4,6 +4,7 @@
library fasta.dill_library_builder;
+import 'package:front_end/src/fasta/dill/dill_typedef_builder.dart';
import 'package:kernel/ast.dart'
show
Class,
@@ -15,7 +16,8 @@ import 'package:kernel/ast.dart'
ListLiteral,
Member,
Procedure,
- StaticGet;
+ StaticGet,
+ Typedef;
import '../errors.dart' show internalError;
@@ -104,6 +106,11 @@ class DillLibraryBuilder extends LibraryBuilder<KernelTypeBuilder, Library> {
return builder;
}
+ void addTypedef(Typedef typedef) {
+ var typedefBuilder = new DillFunctionTypeAliasBuilder(typedef, this);
+ addBuilder(typedef.name, typedefBuilder, typedef.fileOffset);
+ }
+
bool addToExportScope(String name, Builder member) {
return internalError("Not implemented yet.");
}
« no previous file with comments | « pkg/analyzer/lib/src/fasta/mock_element.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698