Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: pkg/compiler/lib/src/parser/element_listener.dart

Issue 1408043002: Move native and js interop properties from the element model to the JS backend (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698