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 94da7df08af7ae5cac8a16827184f56159c47906..00a9cfb60baec5a3864fed1a1f7de432541cbd73 100644 |
| --- a/pkg/compiler/lib/src/parser/element_listener.dart |
| +++ b/pkg/compiler/lib/src/parser/element_listener.dart |
| @@ -54,6 +54,12 @@ import 'listener.dart' show |
| typedef int IdGenerator(); |
| +class ScannerOptions { |
|
sigurdm
2015/10/21 10:28:28
Could use a doc-string
Johnni Winther
2015/10/22 09:06:03
Done.
|
| + final bool canUseNative; |
| + |
| + const ScannerOptions({this.canUseNative: false}); |
| +} |
| + |
| /** |
| * A parser event listener designed to work with [PartialParser]. It |
| * builds elements representing the top-level declarations found in |
| @@ -63,6 +69,7 @@ typedef int IdGenerator(); |
| class ElementListener extends Listener { |
| final IdGenerator idGenerator; |
| final DiagnosticReporter reporter; |
| + final ScannerOptions scannerOptions; |
| final CompilationUnitElementX compilationUnitElement; |
| final StringValidator stringValidator; |
| Link<StringQuoting> interpolationScope; |
| @@ -84,6 +91,7 @@ class ElementListener extends Listener { |
| bool suppressParseErrors = false; |
| ElementListener( |
| + this.scannerOptions, |
| DiagnosticReporter reporter, |
| this.compilationUnitElement, |
| this.idGenerator) |