Index: sdk/lib/_internal/compiler/implementation/source_file_provider.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart |
index c97cebe3cf0d2494301b328f38de5ae5997fe188..12f2e20fb84534ae603a28297d6f498f0d58ed19 100644 |
--- a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart |
+++ b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart |
@@ -114,14 +114,15 @@ class FormattingDiagnosticHandler { |
if (isAborting) return; |
isAborting = (kind == api.Diagnostic.CRASH); |
- message = prefixMessage(message, kind); |
- |
bool fatal = (kind.ordinal & FATAL) != 0; |
bool isInfo = (kind.ordinal & INFO) != 0; |
if (isInfo && uri == null && kind != api.Diagnostic.INFO) { |
info(message, kind); |
return; |
} |
+ |
+ message = prefixMessage(message, kind); |
+ |
// [previousKind]/[lastKind] records the previous non-INFO kind we saw. |
// This is used to suppress info about a warning when warnings are |
// suppressed, and similar for hints. |