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..713055fd7b69055e6fd9d60b844a9d2061e7ed81 100644 |
--- a/pkg/compiler/lib/src/parser/parser_task.dart |
+++ b/pkg/compiler/lib/src/parser/parser_task.dart |
@@ -27,10 +27,13 @@ import 'parser.dart' show |
class ParserTask extends CompilerTask { |
final bool _enableConditionalDirectives; |
+ final bool _enableGenericMethods; |
ParserTask(Compiler compiler, |
- {bool enableConditionalDirectives: false}) |
+ {bool enableConditionalDirectives: false, |
+ bool enableGenericMethods: false}) |
Johnni Winther
2016/02/29 10:18:45
Use one [ParserOptions] argument instead.
eernst
2016/03/09 16:28:13
Done, as described in comment on 'compiler.dart'.
|
: this._enableConditionalDirectives = enableConditionalDirectives, |
+ this._enableGenericMethods = enableGenericMethods, |
super(compiler); |
String get name => 'Parser'; |
@@ -44,7 +47,9 @@ class ParserTask extends CompilerTask { |
NodeListener listener = new NodeListener( |
const ScannerOptions(), reporter, null); |
Parser parser = new Parser( |
- listener, enableConditionalDirectives: _enableConditionalDirectives); |
+ listener, |
+ enableConditionalDirectives: _enableConditionalDirectives, |
+ enableGenericMethods: _enableGenericMethods); |
try { |
parser.parseUnit(token); |
} on ParserError catch(_) { |