| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.parser.classes; | 5 library dart2js.parser.classes; |
| 6 | 6 |
| 7 import '../tokens/token.dart' show | 7 import '../tokens/token.dart' show |
| 8 Token; | 8 Token; |
| 9 | 9 import 'element_listener.dart' show |
| 10 ParserOptions; |
| 10 import 'listener.dart' show | 11 import 'listener.dart' show |
| 11 Listener; | 12 Listener; |
| 12 import 'partial_parser.dart' show | 13 import 'partial_parser.dart' show |
| 13 PartialParser; | 14 PartialParser; |
| 14 | 15 |
| 15 class ClassElementParser extends PartialParser { | 16 class ClassElementParser extends PartialParser { |
| 16 ClassElementParser(Listener listener) | 17 ClassElementParser(Listener listener, ParserOptions parserOptions) |
| 17 : super(listener, enableConditionalDirectives: false); | 18 : super( |
| 19 listener, |
| 20 enableConditionalDirectives: |
| 21 parserOptions.enableConditionalDirectives, |
| 22 enableGenericMethods: parserOptions.enableGenericMethods); |
| 18 | 23 |
| 19 Token parseClassBody(Token token) => fullParseClassBody(token); | 24 Token parseClassBody(Token token) => fullParseClassBody(token); |
| 20 } | 25 } |
| OLD | NEW |