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

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

Issue 2704753002: Implement line and column numbers. (Closed)
Patch Set: Change message. Created 3 years, 10 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_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();
}
}

Powered by Google App Engine
This is Rietveld 408576698