Index: pkg/front_end/lib/src/fasta/source/outline_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/source/outline_builder.dart b/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
index 04e1f671d369dcad9c465d3371ba9b31a6ffad5a..70598467aace9f575568ef08832229764b526ae9 100644 |
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
@@ -54,7 +54,7 @@ class OutlineBuilder extends UnhandledListener { |
OutlineBuilder(SourceLibraryBuilder library) |
: library = library, |
- enableNative = (library.uri.scheme == "dart" || library.isPatch); |
+ enableNative = library.loader.target.enableNative(library); |
@override |
Uri get uri => library.fileUri; |