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

Unified Diff: pkg/csslib/lib/src/options.dart

Issue 23819036: Support for @mixin, @include and @extend (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: All changes ready to commit Created 7 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 | « pkg/csslib/lib/src/messages.dart ('k') | pkg/csslib/lib/src/polyfill.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/lib/src/options.dart
diff --git a/pkg/csslib/lib/src/options.dart b/pkg/csslib/lib/src/options.dart
index a62ef71f0dc0bb09313ef8eed894e8f83ad8825b..a344a39dc7d8f7cd38b3dcd2066287cc21790544 100644
--- a/pkg/csslib/lib/src/options.dart
+++ b/pkg/csslib/lib/src/options.dart
@@ -7,6 +7,9 @@ library csslib.src.options;
import 'package:args/args.dart';
class PreprocessorOptions {
+ /** Generate polyfill code (e.g., var, etc.) */
+ final bool polyfill;
+
/** Report warnings as errors. */
final bool warningsAsErrors;
@@ -48,6 +51,7 @@ class PreprocessorOptions {
checked = args['checked'],
lessSupport = args['less'],
useColors = args['colors'],
+ polyfill = args['polyfill'],
inputFile = args.rest.length > 0 ? args.rest[0] : null;
// tool.dart [options...] <css file>
@@ -69,6 +73,8 @@ class PreprocessorOptions {
help: 'Throw on warnings encountered')
..addFlag('colors', defaultsTo: true,
help: 'Display errors/warnings in colored text')
+ ..addFlag('polyfill', defaultsTo: false,
+ help: 'Generate polyfill for new CSS features')
..addFlag('help', abbr: 'h', defaultsTo: false, negatable: false,
help: 'Displays this help message');
« no previous file with comments | « pkg/csslib/lib/src/messages.dart ('k') | pkg/csslib/lib/src/polyfill.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698