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

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

Issue 8949055: Issue 250: Allow for GNU formatted errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nits Created 9 years 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/CompilerConfiguration.java
diff --git a/compiler/java/com/google/dart/compiler/CompilerConfiguration.java b/compiler/java/com/google/dart/compiler/CompilerConfiguration.java
index 2e788430ea1723d46cb3d060910ea7c6dd5ed281..92646674015ac69f67ee2cad3928256455dc05e1 100644
--- a/compiler/java/com/google/dart/compiler/CompilerConfiguration.java
+++ b/compiler/java/com/google/dart/compiler/CompilerConfiguration.java
@@ -16,6 +16,11 @@ import java.util.List;
*/
public interface CompilerConfiguration {
+ enum ErrorFormat {
+ NORMAL, // Library/File, line, message
+ MACHINE, // All information including severity, subsystem, etc
+ }
+
List<DartCompilationPhase> getPhases();
List<Backend> getBackends();
@@ -84,10 +89,9 @@ public interface CompilerConfiguration {
boolean shouldWarnOnNoSuchType();
/**
- * Returns <code>true</code> if the compiler should print compilation problems in machine
- * format, with all location information - severity, subsystem, etc.
+ * Returns the error formatting the compiler should print with
*/
- boolean printMachineProblems();
+ ErrorFormat printErrorFormat();
/**
* Returns <code>true</code> if the compiler should collect comments.

Powered by Google App Engine
This is Rietveld 408576698