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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 11416004: Reject deprecated language features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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
Index: dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart b/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
index 646dc2a4182fe02111376b987ce08fea06c40c25..f769fcfc1fa117e0b6cac6cabb0524218b71edc2 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
@@ -33,9 +33,14 @@ class Compiler extends leg.Compiler {
emitJavaScript: !hasOption(options, '--output-type=dart'),
disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'),
analyzeAll: hasOption(options, '--analyze-all'),
+ rejectDeprecatedFeatures:
+ hasOption(options, '--reject-deprecated-language-features'),
+ omgThisIsALongOptionName:
karlklose 2012/11/15 10:17:26 omg, this is a nice option name!
ahe 2012/11/16 07:07:36 Yeah, the guy that came up with this is pretty cle
+ hasOption(options,
+ '--report-sdk-use-of-deprecated-language-features'),
strips: getStrips(options),
enableConcreteTypeInference:
- hasOption(options, '--enable-concrete-type-inference')) {
+ hasOption(options, '--enable-concrete-type-inference')) {
if (!libraryRoot.path.endsWith("/")) {
throw new ArgumentError("libraryRoot must end with a /");
}

Powered by Google App Engine
This is Rietveld 408576698