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

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

Issue 2738423002: Handle exports of invalid types. (Closed)
Patch Set: Update status file. Created 3 years, 9 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 | « no previous file | pkg/front_end/lib/src/fasta/builder/invalid_type_builder.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/builder/builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/builder.dart b/pkg/front_end/lib/src/fasta/builder/builder.dart
index 5b2418bda4611934d0ed0739bf6ac0d4781ab738..f2349136dc1dcfdf5964e470a955867a8788db59 100644
--- a/pkg/front_end/lib/src/fasta/builder/builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/builder.dart
@@ -58,6 +58,8 @@ export 'function_type_builder.dart' show FunctionTypeBuilder;
import 'library_builder.dart' show LibraryBuilder;
+import 'invalid_type_builder.dart' show InvalidTypeBuilder;
+
abstract class Builder {
/// Used when multiple things with the same name are declared within the same
/// parent. Only used for declarations, not for scopes.
@@ -95,6 +97,7 @@ abstract class Builder {
Builder combineAmbiguousImport(
String name, Builder other, LibraryBuilder library) {
if (other == this) return this;
+ if (other is InvalidTypeBuilder) return other;
bool isLocal = false;
Builder preferred;
Builder hidden;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/invalid_type_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698