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

Unified Diff: pkg/compiler/lib/src/parser/diet_parser_task.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: Updated cf. comments. 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
« no previous file with comments | « pkg/compiler/lib/src/native/ssa.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/parser/diet_parser_task.dart
diff --git a/pkg/compiler/lib/src/parser/diet_parser_task.dart b/pkg/compiler/lib/src/parser/diet_parser_task.dart
index 4ae413b9b990a9bbe6ca469e2abff6d6dcf1daa3..10a0a9f7df255b9414b206ddac8b7575f63d5763 100644
--- a/pkg/compiler/lib/src/parser/diet_parser_task.dart
+++ b/pkg/compiler/lib/src/parser/diet_parser_task.dart
@@ -17,7 +17,8 @@ import '../tokens/token.dart' show
import 'listener.dart' show
ParserError;
import 'element_listener.dart' show
- ElementListener;
+ ElementListener,
+ ScannerOptions;
import 'partial_parser.dart' show
PartialParser;
@@ -28,8 +29,11 @@ class DietParserTask extends CompilerTask {
dietParse(CompilationUnitElement compilationUnit, Token tokens) {
measure(() {
Function idGenerator = compiler.getNextFreeClassId;
- ElementListener listener =
- new ElementListener(compiler.reporter, compilationUnit, idGenerator);
+ ScannerOptions scannerOptions = new ScannerOptions(
+ canUseNative: compiler.backend.canLibraryUseNative(
+ compilationUnit.library));
+ ElementListener listener = new ElementListener(
+ scannerOptions, compiler.reporter, compilationUnit, idGenerator);
PartialParser parser = new PartialParser(listener);
try {
parser.parseUnit(tokens);
« no previous file with comments | « pkg/compiler/lib/src/native/ssa.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698