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

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: abstract class in resolver test 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 8e1b7e91a0eff27caf73f0272ab3cf8e3baa34d4..e84d45c15b1f15e92a1fdf2b013d2f8646884079 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
@@ -35,9 +35,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'),
+ checkDeprecationInSdk:
+ 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