| Index: pkg/compiler/lib/src/parser/element_listener.dart
|
| diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
|
| index 48bfae3139327643294a3ba0855a560138244dde..7b1f18837e309aa449d8c20a47a01ebb52ea5f5d 100644
|
| --- a/pkg/compiler/lib/src/parser/element_listener.dart
|
| +++ b/pkg/compiler/lib/src/parser/element_listener.dart
|
| @@ -64,6 +64,19 @@ class ScannerOptions {
|
| const ScannerOptions({this.canUseNative: false});
|
| }
|
|
|
| +/// Options used for parsing.
|
| +///
|
| +/// Use this to conditionally support certain constructs, e.g.,
|
| +/// experimental ones.
|
| +class ParserOptions {
|
| + final bool enableConditionalDirectives;
|
| + final bool enableGenericMethods;
|
| +
|
| + const ParserOptions(
|
| + {this.enableConditionalDirectives: false,
|
| + this.enableGenericMethods: false});
|
| +}
|
| +
|
| /**
|
| * A parser event listener designed to work with [PartialParser]. It
|
| * builds elements representing the top-level declarations found in
|
|
|