| 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 5ebd4d509e2abf28f83f396fd9e911fb70d6a95d..af389905cef8f82494aeda1868633cc090470071 100644
|
| --- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| +++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
|
| @@ -109,6 +109,14 @@ public class CommandLineOptions {
|
|
|
| @Option(name = "--show-sdk-warnings", usage = "show warnings from SDK source")
|
| private boolean showSdkWarnings = false;
|
| +
|
| + @Option(name = "--source-from-ast",
|
| + usage = "For debugging, reconstitute source code from the parsed AST.")
|
| + private boolean showSourceFromAst = false;
|
| +
|
| + @Option(name = "--resolve-on-parse-error",
|
| + usage = "For debugging, continue on with resolution even if there are parse errors.")
|
| + private boolean resolveDespiteParseErrors;
|
|
|
| @Argument
|
| private final List<String> sourceFiles = new ArrayList<String>();
|
| @@ -175,6 +183,10 @@ public class CommandLineOptions {
|
| return disableTypeOptimizations;
|
| }
|
|
|
| + public boolean resolveDespiteParseErrors() {
|
| + return resolveDespiteParseErrors;
|
| + }
|
| +
|
| /**
|
| * Returns <code>true</code> if the compiler should print it's help message.
|
| */
|
| @@ -191,6 +203,14 @@ public class CommandLineOptions {
|
| }
|
|
|
| /**
|
| + * if <code>true</code>, run the AST back through the DartSourceVisitor to create source
|
| + * from the parsed AST and print to stdout.
|
| + */
|
| + public boolean showSourceFromAst() {
|
| + return showSourceFromAst;
|
| + }
|
| +
|
| + /**
|
| * Returns whether type errors are fatal.
|
| */
|
| public boolean typeErrorsAreFatal() {
|
|
|