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

Unified Diff: lib/src/options.dart

Issue 1406983003: Remove the checker and corresponding dead code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « lib/src/compiler.dart ('k') | lib/src/server/server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/options.dart
diff --git a/lib/src/options.dart b/lib/src/options.dart
index 7978c1091b36c72e63414305618f42401572464b..62c916aa5a0ea4a2d38f6c82e4361243a4c43405 100644
--- a/lib/src/options.dart
+++ b/lib/src/options.dart
@@ -13,8 +13,6 @@ import 'package:logging/logging.dart' show Level;
import 'package:path/path.dart' as path;
import 'package:yaml/yaml.dart';
-import '../strong_mode.dart' show StrongModeOptions;
-
const bool _CLOSURE_DEFAULT = false;
/// Options used to set up Source URI resolution in the analysis context.
@@ -94,7 +92,6 @@ class RunnerOptions {
/// General options used by the dev compiler and server.
class CompilerOptions {
- final StrongModeOptions strongOptions;
final SourceResolverOptions sourceOptions;
final CodegenOptions codegenOptions;
final RunnerOptions runnerOptions;
@@ -149,8 +146,7 @@ class CompilerOptions {
final String inputBaseDir;
CompilerOptions(
- {this.strongOptions: const StrongModeOptions(),
- this.sourceOptions: const SourceResolverOptions(),
+ {this.sourceOptions: const SourceResolverOptions(),
this.codegenOptions: const CodegenOptions(),
this.runnerOptions: const RunnerOptions(),
this.checkSdk: false,
@@ -238,7 +234,6 @@ CompilerOptions parseOptions(List<String> argv, {bool forceOutDir: false}) {
packagePaths: args['package-paths'].split(','),
resources:
args['resources'].split(',').where((s) => s.isNotEmpty).toList()),
- strongOptions: new StrongModeOptions.fromArguments(args),
runnerOptions: new RunnerOptions(v8Binary: v8Binary),
checkSdk: args['sdk-check'],
dumpInfo: dumpInfo,
@@ -256,7 +251,7 @@ CompilerOptions parseOptions(List<String> argv, {bool forceOutDir: false}) {
inputs: args.rest);
}
-final ArgParser argParser = StrongModeOptions.addArguments(new ArgParser()
+final ArgParser argParser = new ArgParser()
..addFlag('sdk-check',
abbr: 's', help: 'Typecheck sdk libs', defaultsTo: false)
..addFlag('mock-sdk',
@@ -321,7 +316,7 @@ final ArgParser argParser = StrongModeOptions.addArguments(new ArgParser()
..addOption('dump-info-file',
abbr: 'f',
help: 'Dump info json file (requires dump-info)',
- defaultsTo: null));
+ defaultsTo: null);
// TODO: Switch over to the `pub_cache` package (or the Resource API)?
« no previous file with comments | « lib/src/compiler.dart ('k') | lib/src/server/server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698