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

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

Issue 2980863003: The very first bits of resynthesizing elements from kernels. (Closed)
Patch Set: 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/messages.dart
diff --git a/pkg/front_end/lib/src/fasta/messages.dart b/pkg/front_end/lib/src/fasta/messages.dart
index 72f2a09531509fd199417e874bed6d499a02fb49..2fb0dc0c29b8ee54347d411963999b67feb59e9e 100644
--- a/pkg/front_end/lib/src/fasta/messages.dart
+++ b/pkg/front_end/lib/src/fasta/messages.dart
@@ -12,7 +12,8 @@ import 'util/relativize.dart' show relativizeUri;
import 'compiler_context.dart' show CompilerContext;
-import 'deprecated_problems.dart' show deprecated_InputError;
+import 'deprecated_problems.dart'
+ show deprecated_InputError, temporaryUntilPrintsRemovedEnablePrinting;
import 'colors.dart' show cyan, magenta;
@@ -38,8 +39,10 @@ bool get setExitCodeOnProblem {
void warning(Message message, int charOffset, Uri uri) {
if (hideWarnings) return;
- print(deprecated_format(
- uri, charOffset, colorWarning("Warning: ${message.message}")));
+ if (temporaryUntilPrintsRemovedEnablePrinting) {
+ print(deprecated_format(
+ uri, charOffset, colorWarning("Warning: ${message.message}")));
+ }
if (warningsAreFatal) {
if (isVerbose) print(StackTrace.current);
throw new deprecated_InputError(

Powered by Google App Engine
This is Rietveld 408576698