| Index: pkg/compiler/lib/src/parser/diet_parser_task.dart
|
| diff --git a/pkg/compiler/lib/src/parser/diet_parser_task.dart b/pkg/compiler/lib/src/parser/diet_parser_task.dart
|
| index 9afc8d4dcb90e6f532ce029a5d19aaad3aaa18f7..243045aba261b003a8ca2cfe41e08f37bbd924b1 100644
|
| --- a/pkg/compiler/lib/src/parser/diet_parser_task.dart
|
| +++ b/pkg/compiler/lib/src/parser/diet_parser_task.dart
|
| @@ -24,9 +24,13 @@ import 'partial_parser.dart' show
|
|
|
| class DietParserTask extends CompilerTask {
|
| final bool _enableConditionalDirectives;
|
| + final bool _enableGenericMethods;
|
|
|
| - DietParserTask(Compiler compiler, {bool enableConditionalDirectives})
|
| + DietParserTask(Compiler compiler,
|
| + {bool enableConditionalDirectives: false,
|
| + bool enableGenericMethods: false})
|
| : this._enableConditionalDirectives = enableConditionalDirectives,
|
| + this._enableGenericMethods = enableGenericMethods,
|
| super(compiler);
|
|
|
| final String name = 'Diet Parser';
|
| @@ -40,7 +44,9 @@ class DietParserTask extends CompilerTask {
|
| ElementListener listener = new ElementListener(
|
| scannerOptions, compiler.reporter, compilationUnit, idGenerator);
|
| PartialParser parser = new PartialParser(
|
| - listener, enableConditionalDirectives: _enableConditionalDirectives);
|
| + listener,
|
| + enableConditionalDirectives: _enableConditionalDirectives,
|
| + enableGenericMethods: _enableGenericMethods);
|
| try {
|
| parser.parseUnit(tokens);
|
| } on ParserError catch(_) {
|
|
|