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

Unified Diff: pkg/front_end/lib/src/fasta/source/diet_listener.dart

Issue 2913013003: Move enableNative to target, turn it on by default (Closed)
Patch Set: Created 3 years, 7 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/front_end/lib/src/fasta/source/diet_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
index fd1d0afefd067a248b25ae6eeb8d27772c23750d..ab460fb3c76dd2472d150b57363e1c4281c6b40a 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -61,7 +61,7 @@ class DietListener extends StackListener {
: library = library,
uri = library.fileUri,
memberScope = library.scope,
- enableNative = (library.uri.scheme == "dart" || library.isPatch);
+ enableNative = library.loader.target.enableNative(library);
void discard(int n) {
for (int i = 0; i < n; i++) {

Powered by Google App Engine
This is Rietveld 408576698