Chromium Code Reviews| Index: compiler/java/com/google/dart/compiler/CommandLineOptions.java |
| =================================================================== |
| --- compiler/java/com/google/dart/compiler/CommandLineOptions.java (revision 1522) |
| +++ compiler/java/com/google/dart/compiler/CommandLineOptions.java (working copy) |
| @@ -72,6 +72,10 @@ |
| @Option(name = "--generate_source_maps", |
| usage = "Generate source maps") |
| private boolean generateSourceMaps = false; |
| + |
| + @Option(name = "--dump-ast-format", aliases={"-dump-ast-format"}, |
| + usage = "Dump parse tree to a suppoted format (console, text, dot)") |
|
zundel
2011/11/15 14:49:54
Formatting looks funny.
suppoted --> supported
shauvik
2011/11/15 23:53:14
Fixed. It now reads "Dump parse tree. Supported fo
|
| + private String dumpAST = ""; |
| @Option(name = "--human-readable-output", |
| usage = "Write human readable javascript") |
| @@ -246,6 +250,10 @@ |
| public boolean generateHumanReadableOutput() { |
| return generateHumanReadableOutput; |
| } |
| + |
| + public String dumpAST(){ |
| + return dumpAST; |
| + } |
| /** |
| * @return the path to receive compiler output. |