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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_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
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/source_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
index b676740f1dff32a5e5ca8d948782219946207fa6..12831a594f6b181a8de8f6c16a3c5a2b6e1c6eab 100644
--- a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
@@ -442,6 +442,9 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
List<TypeVariableBuilder> copyTypeVariables(
List<TypeVariableBuilder> original);
+
+ @override
+ String get fullNameForErrors => name ?? "<library '$relativeFileUri'>";
}
/// Unlike [Scope], this scope is used during construction of builders to
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698