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

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

Issue 8333016: Migrate --expose_core_impl flag from DartRunner to DartCompiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 months 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/DartCompiler.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 94c18ea9a0cfb6f9a4bc4a52e8e88898fc6702f8..62976f869f464f377e108bea0f8a7ba5893c2a70 100644
--- a/compiler/java/com/google/dart/compiler/CommandLineOptions.java
+++ b/compiler/java/com/google/dart/compiler/CommandLineOptions.java
@@ -38,6 +38,9 @@ public class CommandLineOptions {
usage = "Do not generate output, only analyze")
private boolean checkOnly = false;
+ @Option(name = "--expose_core_impl", usage = "Automatic import of dart:coreimpl library")
+ private boolean exposeCoreImpl = false;
+
@Option(name = "--warn_no_such_type",
usage = "Treat some type checks as warnings\n instead of fatal errors")
private boolean shouldWarnOnNoSuchType = false;
@@ -153,6 +156,13 @@ public class CommandLineOptions {
}
/**
+ * @return <code>true</code> to automatically import dart:coreimpl
+ */
+ public boolean shouldExposeCoreImpl() {
+ return exposeCoreImpl;
+ }
+
+ /**
* Returns whether the option -generate-documentation is provided.
*/
public boolean generateDocumentation() {
@@ -301,9 +311,6 @@ public class CommandLineOptions {
@Option(name = "--compile-only", usage = "Compile but do not execute")
private boolean compileOnly = false;
- @Option(name = "--expose_core_impl", usage = "Automatic import of dart:coreimpl library")
- private boolean exposeCoreImpl = false;
-
@Option(name = "--verbose", usage = "Extra diagnostic output")
private boolean verbose = false;
@@ -322,13 +329,6 @@ public class CommandLineOptions {
}
/**
- * @return <code>true</code> to automatically import dart:coreimpl
- */
- public boolean shouldExposeCoreImpl() {
- return exposeCoreImpl;
- }
-
- /**
* Returns <code>true</code> if profiling is enabled.
*/
@Override
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/DartCompiler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698