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

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

Issue 2924363002: Improve error messages. (Closed)
Patch Set: Updates after testing. Created 3 years, 6 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/body_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
index 9cdcbe1f58629274aee5581741b1df02e122905b..c9b20eb823217ccdd2ffaf20fba7e0e4bb25c802 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -2924,7 +2924,8 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
{bool silent: false}) {
// TODO(ahe): If constantExpressionRequired is set, set it to false to
// avoid a long list of errors.
- return library.addCompileTimeError(charOffset, message, fileUri: uri);
+ return library.addCompileTimeError(charOffset, message,
+ fileUri: uri, silent: silent);
}
@override

Powered by Google App Engine
This is Rietveld 408576698