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

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

Issue 2780543002: Handle complicated imports. (Closed)
Patch Set: Fix infinite loop. 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
Index: pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart b/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
index 3a9f5b841dc6bd8d021d0d5e626f658e3644fc01..a98e2bad53866ca347a2c7c0e2ce1a5f86b629b9 100644
--- a/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
@@ -43,22 +43,6 @@ class PrefixBuilder extends Builder {
}
}
- Builder combineAmbiguousImport(
- String name, Builder other, LibraryBuilder library) {
- if (other is PrefixBuilder) {
- /// Handles the case where the same prefix is used for different imports.
- other.exports.forEach((String name, Builder member) {
- Builder existing = exports[name];
- if (existing != null) {
- member = existing.combineAmbiguousImport(name, member, library);
- }
- exports[name] = member;
- });
- return this;
- }
- return super.combineAmbiguousImport(name, other, library);
- }
-
@override
String get fullNameForErrors => name;
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/library_builder.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698