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

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

Issue 2916863003: Implement library access restrictions and privacy. (Closed)
Patch Set: Update status file. 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/source_library_builder.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/target_implementation.dart
diff --git a/pkg/front_end/lib/src/fasta/target_implementation.dart b/pkg/front_end/lib/src/fasta/target_implementation.dart
index ecccfa33db84322fb138e36a575fdb16942969e9..dd69f1c122b4e50ab87ee0f3c2359b89a8ef045a 100644
--- a/pkg/front_end/lib/src/fasta/target_implementation.dart
+++ b/pkg/front_end/lib/src/fasta/target_implementation.dart
@@ -75,8 +75,8 @@ abstract class TargetImplementation extends Target {
/// String, which is the compile-time error message.
Builder getCompileTimeError(Loader loader) {
if (cachedCompileTimeError != null) return cachedCompileTimeError;
- return cachedCompileTimeError =
- loader.coreLibrary.getConstructor("_CompileTimeError", isPrivate: true);
+ return cachedCompileTimeError = loader.coreLibrary
+ .getConstructor("_CompileTimeError", bypassLibraryPrivacy: true);
}
/// Returns a reference to the constructor used for creating a runtime error
@@ -87,7 +87,8 @@ abstract class TargetImplementation extends Target {
return cachedDuplicatedFieldInitializerError;
}
return cachedDuplicatedFieldInitializerError = loader.coreLibrary
- .getConstructor("_DuplicatedFieldInitializerError", isPrivate: true);
+ .getConstructor("_DuplicatedFieldInitializerError",
+ bypassLibraryPrivacy: true);
}
/// Returns a reference to the constructor of [FallThroughError] error. The
@@ -111,8 +112,8 @@ abstract class TargetImplementation extends Target {
if (cachedInvocation != null) {
return cachedInvocation;
}
- return cachedInvocation =
- loader.coreLibrary.getConstructor("_InvocationMirror", isPrivate: true);
+ return cachedInvocation = loader.coreLibrary
+ .getConstructor("_InvocationMirror", bypassLibraryPrivacy: true);
}
/// Returns a reference to the constructor used for creating `native`
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/source_library_builder.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698