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

Side by Side Diff: lib/src/options.dart

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « lib/src/info.dart ('k') | lib/src/report.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Set of flags and options passed to the compiler 5 /// Set of flags and options passed to the compiler
6 library ddc.src.options; 6 library dev_compiler.src.options;
7 7
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:args/args.dart'; 10 import 'package:args/args.dart';
11 import 'package:cli_util/cli_util.dart' show getSdkDir; 11 import 'package:cli_util/cli_util.dart' show getSdkDir;
12 import 'package:dev_compiler/config.dart'; 12 import 'package:dev_compiler/config.dart';
13 import 'package:logging/logging.dart' show Level; 13 import 'package:logging/logging.dart' show Level;
14 14
15 /// Options used by ddc's TypeResolver. 15 /// Options used by our TypeResolver.
16 class ResolverOptions { 16 class ResolverOptions {
17 /// Whether to resolve 'package:' uris using the multi-package resolver. 17 /// Whether to resolve 'package:' uris using the multi-package resolver.
18 final bool useMultiPackage; 18 final bool useMultiPackage;
19 19
20 /// Package root when resolving 'package:' urls the standard way. 20 /// Package root when resolving 'package:' urls the standard way.
21 final String packageRoot; 21 final String packageRoot;
22 22
23 /// List of paths used for the multi-package resolver. 23 /// List of paths used for the multi-package resolver.
24 final List<String> packagePaths; 24 final List<String> packagePaths;
25 25
(...skipping 28 matching lines...) Expand all
54 final bool onlyInferConstsAndFinalFields; 54 final bool onlyInferConstsAndFinalFields;
55 55
56 ResolverOptions({this.useMultiPackage: false, this.packageRoot: 'packages/', 56 ResolverOptions({this.useMultiPackage: false, this.packageRoot: 'packages/',
57 this.packagePaths: const <String>[], this.inferFromOverrides: true, 57 this.packagePaths: const <String>[], this.inferFromOverrides: true,
58 this.inferStaticsFromIdentifiers: false, 58 this.inferStaticsFromIdentifiers: false,
59 this.inferInNonStableOrder: false, 59 this.inferInNonStableOrder: false,
60 this.onlyInferConstsAndFinalFields: false}); 60 this.onlyInferConstsAndFinalFields: false});
61 } 61 }
62 62
63 // TODO(vsm): Merge RulesOptions and TypeOptions 63 // TODO(vsm): Merge RulesOptions and TypeOptions
64 /// Options used by ddc's RestrictedRules. 64 /// Options used by our RestrictedRules.
65 class RulesOptions extends TypeOptions { 65 class RulesOptions extends TypeOptions {
66 /// Whether to allow casts in constant contexts. 66 /// Whether to allow casts in constant contexts.
67 final bool allowConstCasts; 67 final bool allowConstCasts;
68 68
69 /// Whether to use covariant generics 69 /// Whether to use covariant generics
70 final bool covariantGenerics; 70 final bool covariantGenerics;
71 71
72 /// Whether to inject casts between Dart assignable types. 72 /// Whether to inject casts between Dart assignable types.
73 final bool relaxedCasts; 73 final bool relaxedCasts;
74 74
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 ..addFlag('help', abbr: 'h', help: 'Display this message') 303 ..addFlag('help', abbr: 'h', help: 'Display this message')
304 ..addFlag('force-compile', 304 ..addFlag('force-compile',
305 help: 'Compile code with static errors', defaultsTo: false) 305 help: 'Compile code with static errors', defaultsTo: false)
306 ..addOption('log', abbr: 'l', help: 'Logging level', defaultsTo: 'severe') 306 ..addOption('log', abbr: 'l', help: 'Logging level', defaultsTo: 'severe')
307 ..addFlag('dump-info', 307 ..addFlag('dump-info',
308 abbr: 'i', help: 'Dump summary information', defaultsTo: false) 308 abbr: 'i', help: 'Dump summary information', defaultsTo: false)
309 ..addOption('dump-info-file', 309 ..addOption('dump-info-file',
310 abbr: 'f', 310 abbr: 'f',
311 help: 'Dump info json file (requires dump-info)', 311 help: 'Dump info json file (requires dump-info)',
312 defaultsTo: null); 312 defaultsTo: null);
OLDNEW
« no previous file with comments | « lib/src/info.dart ('k') | lib/src/report.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698