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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 8476005: Support for --machine-problems, tests for PrettyErrorFormatter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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: compiler/java/com/google/dart/compiler/DartCompiler.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
index ca0319638fac3aad99708a43c4fa3c7754f9c1ad..cd79de45ab03ddf55b199fd0aefdc187c2147ed4 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -1012,8 +1012,9 @@ public class DartCompiler {
}
try {
File outputDirectory = config.getOutputDirectory();
+ boolean printMachineProblems = config.printMachineProblems();
DefaultDartArtifactProvider provider = new DefaultDartArtifactProvider(outputDirectory);
- DefaultDartCompilerListener listener = new DefaultDartCompilerListener();
+ DefaultDartCompilerListener listener = new DefaultDartCompilerListener(printMachineProblems);
// Compile the Dart application and its dependencies.
LibrarySource lib = new UrlLibrarySource(sourceFile);

Powered by Google App Engine
This is Rietveld 408576698