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 8429f18f1ae17ed35f5a80f33c9ea2b4deda064c..257a3d009d9ec29e23c6844d30803db4663fa67e 100644 |
--- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java |
+++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java |
@@ -30,10 +30,6 @@ public class CommandLineOptions { |
usage = "Batch mode (for unit testing)") |
private boolean batch = false; |
- @Option(name = "--deprecated-generate-code", |
- usage = "Use deprecated code generation.\n Will be removed 1 March 2012.") |
- private boolean deprecatedGenerateCode = false; |
- |
@Option(name = "--expose_core_impl", usage = "Automatic import of dart:coreimpl library") |
private boolean exposeCoreImpl = false; |
@@ -41,31 +37,14 @@ public class CommandLineOptions { |
usage = "Format errors as normal or machine") |
private String errorFormat = ""; |
- @Option(name = "--enable_type_checks", |
- usage = "Generate runtime type checks") |
- private boolean developerModeChecks = false; |
- |
@Option(name = "--disable-type-optimizations", |
usage = "Turn off type optimizations\n (for debugging)") |
private boolean disableTypeOptimizations = false; |
- @Option(name = "--generate_source_maps", |
- usage = "Generate source maps") |
- private boolean generateSourceMaps = false; |
- |
@Option(name = "--dump_ast_format", |
usage = "Dump parse tree. Supported formats include console, text or dot") |
private String dumpAST = ""; |
- @Option(name = "--coverage_type", |
- usage = "Add instrumentation probes for collecting coverage. " + |
- "Supported types include function, statement, branch and all") |
- private String coverage = ""; |
- |
- @Option(name = "--human-readable-output", |
- usage = "Write human readable javascript") |
- private boolean generateHumanReadableOutput = false; |
- |
@Option(name = "--ignore-unrecognized-flags", |
usage = "Ignore unrecognized command line flags") |
private boolean ignoreUnrecognizedFlags = false; |
@@ -96,10 +75,6 @@ public class CommandLineOptions { |
usage = "Enable incremental compilation") |
private boolean incremental = false; |
- @Option(name = "--out", |
- usage = "Write generated JavaScript to a file") |
- private File outputFilename = null; |
- |
// TODO(zundel): -out is for backward compatibility until scripts are updated |
@Option(name = "--work", aliases = { "-out" }, |
usage = "Directory to receive compiler output\n for future incremental builds") |
@@ -129,13 +104,6 @@ public class CommandLineOptions { |
private final List<String> sourceFiles = new ArrayList<String>(); |
/** |
- * Returns whether the only analysis should be done, without code generation. |
- */ |
- public boolean checkOnly() { |
- return !deprecatedGenerateCode; |
- } |
- |
- /** |
* @return <code>true</code> to automatically import dart:coreimpl |
*/ |
public boolean shouldExposeCoreImpl() { |
@@ -182,29 +150,10 @@ public class CommandLineOptions { |
return disableTypeOptimizations; |
} |
- public boolean generateSourceMaps() { |
- return generateSourceMaps; |
- } |
- |
- public boolean generateHumanReadableOutput() { |
- return generateHumanReadableOutput; |
- } |
- |
public String dumpAST(){ |
return dumpAST; |
} |
- public String getCoverageType(){ |
- return coverage; |
- } |
- |
- /** |
- * @return the path to receive compiler output. |
- */ |
- public File getOutputFilename() { |
- return outputFilename; |
- } |
- |
/** |
* Returns <code>true</code> if the compiler should print it's help message. |
*/ |
@@ -234,10 +183,6 @@ public class CommandLineOptions { |
return warningsAreFatal; |
} |
- public boolean developerModeChecks() { |
zundel
2012/02/29 22:51:59
it turns out we might need this. There is at leas
scheglov
2012/02/29 23:14:55
Hm...
I don't see this.
Logically this is type pr
zundel
2012/02/29 23:24:51
I dug up my old notes. Basically, near the bottom
|
- return developerModeChecks; |
- } |
- |
/** |
* @return the format to use for printing errors |
*/ |