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

Unified Diff: pkg/front_end/lib/src/fasta/problems.dart

Issue 2979623002: Use messages for (some) public API errors (Closed)
Patch Set: cl comments 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/problems.dart
diff --git a/pkg/front_end/lib/src/fasta/problems.dart b/pkg/front_end/lib/src/fasta/problems.dart
index 4a3098bf291864dc05fa1b69073d0b358a11d589..26b34233ece93de135e939555334b525553d8d5d 100644
--- a/pkg/front_end/lib/src/fasta/problems.dart
+++ b/pkg/front_end/lib/src/fasta/problems.dart
@@ -34,7 +34,7 @@ dynamic internalProblem(Message message, int charOffset, Uri uri) {
}
}
-dynamic unimplemented(String what, int charOffset, Uri uri) {
+dynamic unimplemented(String what, [int charOffset = -1, Uri uri = null]) {
return internalProblem(
templateInternalProblemUnimplemented.withArguments(what),
charOffset,

Powered by Google App Engine
This is Rietveld 408576698