Index: pkg/front_end/lib/src/fasta/builder/prefix_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart b/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart |
index ffd32be6b4296a2b5d4edfc7ed6d4eab9fdcd274..58abbc637470930d9f5ecca6a3f6cf3af5927269 100644 |
--- a/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart |
@@ -9,6 +9,9 @@ import 'builder.dart' show |
LibraryBuilder, |
MemberBuilder; |
+import '../messages.dart' show |
+ warning; |
+ |
import 'package:kernel/ast.dart' show |
Member; |
@@ -32,8 +35,8 @@ class PrefixBuilder extends Builder { |
// TODO(ahe): Move this to KernelPrefixBuilder. |
Builder builder = exports[name]; |
if (builder == null) { |
- // TODO(ahe): Report error? |
- print("${this.name} has no member named $name"); |
+ warning(parent.fileUri, -1, |
+ "'${this.name}' has no member named '$name'."); |
} |
if (builder is DillMemberBuilder) { |
return builder.member.isInstanceMember |