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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart

Issue 2977693002: Remove deprecated methods from ClassBuilder. (Closed)
Patch Set: Spelling of unnamed. Created 3 years, 5 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_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
index 9a6a89462099e3349a7f997630a50bc17314a1e7..f348a7784dddff1add62afa938808467b98c6eca 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
@@ -13,6 +13,8 @@ import '../../scanner/token.dart' show Token;
import '../fasta_codes.dart'
show
Message,
+ messageConflictsWithTypeVariableCause,
+ templateConflictsWithTypeVariable,
templateDuplicatedExport,
templateDuplicatedImport,
templateExportHidesExport,
@@ -158,10 +160,11 @@ class KernelLibraryBuilder
if (typeVariablesByName != null) {
TypeVariableBuilder tv = typeVariablesByName[name];
if (tv != null) {
- cls.deprecated_addCompileTimeError(
- member.charOffset, "Conflict with type variable '$name'.");
- cls.deprecated_addCompileTimeError(
- tv.charOffset, "This is the type variable.");
+ cls.addCompileTimeError(
+ templateConflictsWithTypeVariable.withArguments(name),
+ member.charOffset);
+ cls.addCompileTimeError(
+ messageConflictsWithTypeVariableCause, tv.charOffset);
}
}
setParent(name, member);

Powered by Google App Engine
This is Rietveld 408576698