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

Unified Diff: pkg/front_end/lib/src/fasta/builder/prefix_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/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

Powered by Google App Engine
This is Rietveld 408576698