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

Unified Diff: lib/src/options.dart

Issue 1022963002: pkg/csslib: fixes for args (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/messages.dart ('k') | pubspec.yaml » ('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 0ebb5b41350fe248b56df9ec62a0bb0baf3943da..95e8a2faba8cf06b4e3ea58740418260461fd124 100644
--- a/lib/src/options.dart
+++ b/lib/src/options.dart
@@ -38,10 +38,12 @@ class PreprocessorOptions {
final bool useColors;
/** File to process by the compiler. */
- String inputFile;
+ final String inputFile;
- // We could make this faster, if it ever matters.
- factory PreprocessorOptions() => parse(['']);
+ const PreprocessorOptions({this.verbose: false, this.checked: false,
+ this.lessSupport: true, this.warningsAsErrors: false,
+ this.throwOnErrors: false, this.throwOnWarnings: false,
+ this.useColors: true, this.polyfill: false, this.inputFile});
PreprocessorOptions.fromArgs(ArgResults args)
: warningsAsErrors = args['warnings_as_errors'],
« no previous file with comments | « lib/src/messages.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698