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

Unified Diff: dart/pkg/compiler/lib/src/dart2js.dart

Issue 854633004: Add option --generate-code-with-compile-time-errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42915. Created 5 years, 11 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 | « dart/pkg/compiler/lib/src/compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/dart2js.dart
diff --git a/dart/pkg/compiler/lib/src/dart2js.dart b/dart/pkg/compiler/lib/src/dart2js.dart
index 80be4a745a520be596c5c24780ee6e187adcd7d2..fc3b766216fcfa50d1dad9ac77a1ee8c0e73dedd 100644
--- a/dart/pkg/compiler/lib/src/dart2js.dart
+++ b/dart/pkg/compiler/lib/src/dart2js.dart
@@ -343,9 +343,10 @@ Future<api.CompilationResult> compile(List<String> argv) {
new OptionHandler('--enable-async', setEnableAsync),
new OptionHandler('--enable-enum', passThrough),
new OptionHandler('--allow-native-extensions', setAllowNativeExtensions),
- new OptionHandler('-D.+=.*', addInEnvironment),
+ new OptionHandler('--generate-code-with-compile-time-errors', passThrough),
- // The following two options must come last.
+ // The following three options must come last.
+ new OptionHandler('-D.+=.*', addInEnvironment),
new OptionHandler('-.*', (String argument) {
helpAndFail("Unknown option '$argument'.");
}),
@@ -609,6 +610,9 @@ be removed in a future version:
You can inspect the generated file with the viewer at:
https://dart-lang.github.io/dump-info-visualizer/
+ --generate-code-with-compile-time-errors
+ Generates output even if the program contains compile-time errors. Use the
+ exit code to determine if compilation failed.
'''.trim());
}
« no previous file with comments | « dart/pkg/compiler/lib/src/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698