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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_variable_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/kernel/kernel_variable_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart
index a6c29f5244b138d0fdd9cfd3cf2d0db83a4be340..f4e29240bd24974a54c279e4140abd0f42a21bc7 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_variable_builder.dart
@@ -19,4 +19,7 @@ class KernelVariableBuilder extends Builder {
bool get isLocal => true;
VariableDeclaration get target => variable;
+
+ @override
+ String get fullNameForErrors => variable.name ?? "<unnamed>";
}

Powered by Google App Engine
This is Rietveld 408576698