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

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

Issue 2767653002: Implement fullNameForErrors on all Builders. (Closed)
Patch Set: Used <unnamed> instead of empty string. 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/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 56eee91ae0100fb0db8f5a3f44984d341fe25129..30a175648d611007afeaf56d179ffad4fd6783cc 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
@@ -109,4 +109,9 @@ class DillLibraryBuilder extends LibraryBuilder<KernelTypeBuilder, Library> {
String name, Builder builder, Builder other, int charOffset) {
return new KernelInvalidTypeBuilder(name, charOffset, fileUri);
}
+
+ @override
+ String get fullNameForErrors {
+ return library.name ?? "<library '${library.fileUri}'>";
+ }
}

Powered by Google App Engine
This is Rietveld 408576698