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

Unified Diff: pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart

Issue 1382143005: Limit hints on empty hide on package imports. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart
diff --git a/pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart b/pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart
index cfef59fbabd60edc3dcea1d0f2ffa2ba28f3a8cc..7d624b234a7c3e0f3b27a06797f35a05b0a5a9f0 100644
--- a/pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart
+++ b/pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart
@@ -13,12 +13,26 @@ import '../elements/elements.dart' show
import 'messages.dart';
class DiagnosticOptions {
- final bool suppressWarnings;
+
+ /// Emit terse diagnostics without howToFix.
final bool terseDiagnostics;
+
+ /// If `true`, warnings and hints not from user code are reported.
final bool showPackageWarnings;
+ /// If `true`, warnings are not reported.
+ final bool suppressWarnings;
+
+ /// If `true`, warnings cause the compilation to fail.
+ final bool fatalWarnings;
+
+ /// If `true`, hints are not reported.
+ final bool suppressHints;
+
const DiagnosticOptions({
this.suppressWarnings: false,
+ this.fatalWarnings: false,
+ this.suppressHints: false,
this.terseDiagnostics: false,
this.showPackageWarnings: false});
}
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698