Index: pkg/compiler/lib/src/parser/parser_task.dart |
diff --git a/pkg/compiler/lib/src/parser/parser_task.dart b/pkg/compiler/lib/src/parser/parser_task.dart |
index fa715aac5b537b4bcba50448ad3312198a88533c..5ea0247fec68e30e5ebddd9acb3f8415b0be0f55 100644 |
--- a/pkg/compiler/lib/src/parser/parser_task.dart |
+++ b/pkg/compiler/lib/src/parser/parser_task.dart |
@@ -26,13 +26,7 @@ import 'parser.dart' show |
Parser; |
class ParserTask extends CompilerTask { |
- final bool _enableConditionalDirectives; |
- |
- ParserTask(Compiler compiler, |
- {bool enableConditionalDirectives: false}) |
- : this._enableConditionalDirectives = enableConditionalDirectives, |
- super(compiler); |
- |
+ ParserTask(Compiler compiler) : super(compiler); |
String get name => 'Parser'; |
Node parse(ElementX element) { |
@@ -43,8 +37,7 @@ class ParserTask extends CompilerTask { |
return measure(() { |
NodeListener listener = new NodeListener( |
const ScannerOptions(), reporter, null); |
- Parser parser = new Parser( |
- listener, enableConditionalDirectives: _enableConditionalDirectives); |
+ Parser parser = new Parser(listener); |
try { |
parser.parseUnit(token); |
} on ParserError catch(_) { |