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

Unified Diff: pkg/compiler/lib/src/compiler.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/common/resolution.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 9f1484332e5f33016caad96a3dca37adb7c7bd40..204fd10893266c218eaa568fc2796b6537a3fc19 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -86,6 +86,8 @@ import 'null_compiler_output.dart' show
NullSink;
import 'parser/diet_parser_task.dart' show
DietParserTask;
+import 'parser/element_listener.dart' show
+ ScannerOptions;
import 'parser/parser_task.dart' show
ParserTask;
import 'patch_parser.dart' show
@@ -2028,6 +2030,11 @@ class _CompilerParsing implements Parsing {
}
});
}
+
+ ScannerOptions getScannerOptionsFor(Element element) {
+ return new ScannerOptions(
+ canUseNative: compiler.backend.canLibraryUseNative(element.library));
+ }
}
class GlobalDependencyRegistry extends CodegenRegistry {
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698