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

Unified Diff: compiler/java/com/google/dart/compiler/CommandLineOptions.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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/CompilerConfiguration.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/CommandLineOptions.java
diff --git a/compiler/java/com/google/dart/compiler/CommandLineOptions.java b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
index 263df779733e7764c13458eba2643da722eb55df..6edd165b77d6810a9a2f87fd374ffb57823ddf6f 100644
--- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java
+++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
@@ -41,6 +41,10 @@ public class CommandLineOptions {
@Option(name = "--expose_core_impl", usage = "Automatic import of dart:coreimpl library")
private boolean exposeCoreImpl = false;
+ @Option(name = "--machine-problems",
+ usage = "Print problems with all details")
zundel 2011/11/04 19:21:34 Format errors for machine parsing
+ private boolean printMachineProblems = false;
+
@Option(name = "--enable_type_checks",
usage = "Generate runtime type checks")
private boolean developerModeChecks = false;
@@ -273,6 +277,14 @@ public class CommandLineOptions {
}
/**
+ * Returns <code>true</code> if the compiler should print compilation problems in machine
+ * format, with all information - severity, subsystem, etc.
+ */
+ public boolean printMachineProblems() {
+ return printMachineProblems;
+ }
+
+ /**
* Returns whether type errors are fatal.
*/
public boolean typeErrorsAreFatal() {
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/CompilerConfiguration.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698