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

Unified Diff: pkg/front_end/lib/src/fasta/builder/constructor_reference_builder.dart

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)
Patch Set: Add type variable to Code. Created 3 years, 5 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/constructor_reference_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/constructor_reference_builder.dart b/pkg/front_end/lib/src/fasta/builder/constructor_reference_builder.dart
index 707aeda55fe272e4ef337aaace9ab9f92736192f..24186c39d4e1bb5b74db05eb9b8ec3f1e96bf090 100644
--- a/pkg/front_end/lib/src/fasta/builder/constructor_reference_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/constructor_reference_builder.dart
@@ -13,7 +13,7 @@ import 'builder.dart'
Scope,
TypeBuilder;
-import '../messages.dart' show deprecated_warning;
+import '../messages.dart' show templateConstructorNotFound, warning;
class ConstructorReferenceBuilder extends Builder {
final String name;
@@ -58,8 +58,8 @@ class ConstructorReferenceBuilder extends Builder {
suffix ?? "", charOffset, fileUri, accessingLibrary);
}
if (target == null) {
- deprecated_warning(fileUri, charOffset,
- "Couldn't find constructor '$fullNameForErrors'.");
+ warning(templateConstructorNotFound.withArguments(fullNameForErrors),
+ charOffset, fileUri);
}
}
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/class_builder.dart ('k') | pkg/front_end/lib/src/fasta/builder/library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698