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

Unified Diff: pkg/front_end/lib/src/fasta/loader.dart

Issue 2953703002: Tweak public APIs and use them in patch_sdk, dart2js, and kernel-service (Closed)
Patch Set: cl review updates: cleanup in kernel deserialization Created 3 years, 5 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/loader.dart
diff --git a/pkg/front_end/lib/src/fasta/loader.dart b/pkg/front_end/lib/src/fasta/loader.dart
index 4f94ef5555274cde6b1e489b9dcb266ba38e622b..a069d12c4b29fb8ddd9555210d459b6ef70709b2 100644
--- a/pkg/front_end/lib/src/fasta/loader.dart
+++ b/pkg/front_end/lib/src/fasta/loader.dart
@@ -84,6 +84,9 @@ abstract class Loader<L> {
coreLibrary = library;
target.loadExtraRequiredLibraries(this);
}
+ if (target.backendTarget.mayDefineRestrictedType(uri)) {
+ library.mayImplementRestrictedTypes = true;
+ }
if (uri.scheme == "dart") {
target.readPatchFiles(library);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/utils.dart ('k') | pkg/front_end/lib/src/fasta/parser/dart_vm_native.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698