Chromium Code Reviews| 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 { |
|
ahe
2016/02/23 08:05:26
Is this class really needed?
eernst
2016/02/23 12:40:45
Here's how I concluded that this class was needed:
|
| + 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 |