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."); |
} |