commit | 660c33fde6c121b9eb3cf27ee26a3d8a7c47a221 | [log] [tgz] |
---|---|---|
author | Peter von der AheĢ <ahe@google.com> | Thu Jan 17 14:23:07 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Thu Jan 17 14:23:07 2019 +0000 |
tree | 2aea4d5032d8d878a7eb58eadffa791b7337b83a | |
parent | 3e24b60516c958eb2b0bb51c376a6ebcf6a78a0b [diff] |
Add TypeBuilder.declaration Change-Id: Iede4bde8e30bb4ac034c0cb0db49a843ff84d48b Reviewed-on: https://dart-review.googlesource.com/c/89541 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
diff --git a/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart b/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart index 8baf2e1..1a17041 100644 --- a/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart +++ b/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart
@@ -38,6 +38,7 @@ List<T> arguments; + @override TypeDeclarationBuilder<T, R> declaration; NamedTypeBuilder(this.name, this.arguments);
diff --git a/pkg/front_end/lib/src/fasta/builder/type_builder.dart b/pkg/front_end/lib/src/fasta/builder/type_builder.dart index ceb7a59..bebc060 100644 --- a/pkg/front_end/lib/src/fasta/builder/type_builder.dart +++ b/pkg/front_end/lib/src/fasta/builder/type_builder.dart
@@ -12,6 +12,8 @@ abstract class TypeBuilder { const TypeBuilder(); + TypeDeclarationBuilder get declaration => null; + void resolveIn( Scope scope, int charOffset, Uri fileUri, LibraryBuilder library) {}