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

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

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)
Patch Set: Add type variable to Code. 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_named_type_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_named_type_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_named_type_builder.dart
index 6bdf5529e24715ef431f791fe51db037d7f0f4e3..e41d72bb2b866a74d09b127642b68c79d70d07e1 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_named_type_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_named_type_builder.dart
@@ -6,7 +6,7 @@ library fasta.kernel_interface_type_builder;
import 'package:kernel/ast.dart' show DartType, DynamicType, Supertype;
-import '../messages.dart' show deprecated_warning;
+import '../messages.dart' show templateTypeNotFound, warning;
import 'kernel_builder.dart'
show
@@ -27,18 +27,18 @@ class KernelNamedTypeBuilder
KernelInvalidTypeBuilder buildInvalidType(String name) {
// TODO(ahe): Record error instead of printing.
- deprecated_warning(fileUri, charOffset, "Type not found: '$name'.");
+ warning(templateTypeNotFound.withArguments(name), charOffset, fileUri);
return new KernelInvalidTypeBuilder(name, charOffset, fileUri);
}
DartType handleMissingType() {
// TODO(ahe): Record error instead of printing.
- deprecated_warning(fileUri, charOffset, "No type for: '$name'.");
+ warning(templateTypeNotFound.withArguments(name), charOffset, fileUri);
return const DynamicType();
}
Supertype handleMissingSupertype() {
- deprecated_warning(fileUri, charOffset, "No type for: '$name'.");
+ warning(templateTypeNotFound.withArguments(name), charOffset, fileUri);
return null;
}

Powered by Google App Engine
This is Rietveld 408576698