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

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

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: Merged with 4df146dd9a465d63344330bf3e45524b927c92ec 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_type_variable_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart
index e0472a2d03a99db9d70604d592e3849b83180d7d..dac7d72beda9ee237ddcde85d14cb110773cbd50 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart
@@ -7,7 +7,7 @@ library fasta.kernel_type_variable_builder;
import 'package:kernel/ast.dart'
show DartType, TypeParameter, TypeParameterType;
-import '../errors.dart' show inputError;
+import '../deprecated_problems.dart' show deprecated_inputError;
import 'kernel_builder.dart'
show
@@ -33,7 +33,7 @@ class KernelTypeVariableBuilder
DartType buildType(
LibraryBuilder library, List<KernelTypeBuilder> arguments) {
if (arguments != null) {
- library.addWarning(arguments.first.charOffset,
+ library.deprecated_addWarning(arguments.first.charOffset,
"Can't use type arguments with type parameter $parameter",
fileUri: fileUri);
}
@@ -43,7 +43,7 @@ class KernelTypeVariableBuilder
DartType buildTypesWithBuiltArguments(
LibraryBuilder library, List<DartType> arguments) {
if (arguments != null) {
- return inputError(null, null,
+ return deprecated_inputError(null, null,
"Can't use type arguments with type parameter $parameter");
} else {
return buildType(library, null);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | pkg/front_end/lib/src/fasta/kernel/verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698