Index: pkg/front_end/lib/src/fasta/kernel/kernel_invalid_type_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_invalid_type_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_invalid_type_builder.dart |
index 6b24840c8b32cf8dffd6849fe90ce0480902fe25..387ac18563b979c2250db9e828cd073ed4548061 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_invalid_type_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_invalid_type_builder.dart |
@@ -8,6 +8,9 @@ import 'package:kernel/ast.dart' show |
DartType, |
DynamicType; |
+import '../messages.dart' show |
+ warning; |
+ |
import 'kernel_builder.dart' show |
InvalidTypeBuilder, |
KernelTypeBuilder; |
@@ -19,14 +22,14 @@ class KernelInvalidTypeBuilder |
DartType buildType(List<KernelTypeBuilder> arguments) { |
// TODO(ahe): Implement error handling. |
- print("No type for: $name"); |
+ warning(fileUri, charOffset, "No type for: '$name'."); |
return const DynamicType(); |
} |
/// [Arguments] have already been built. |
DartType buildTypesWithBuiltArguments(List<DartType> arguments) { |
// TODO(ahe): Implement error handling. |
- print("No type for: $name"); |
+ warning(fileUri, charOffset, "No type for: '$name'."); |
return const DynamicType(); |
} |
} |