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; |
} |