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

Unified Diff: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart

Issue 2791263005: Split MirrorsData methods and MirrorsDataImpl data by element kind. (Closed)
Patch Set: Updated cf. comments. Created 3 years, 8 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/compiler/lib/src/js_emitter/program_builder/program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
index 98529ac530cf5eae5b67e9963c409f0c87ba19e2..2c8ba44958ccc2a8f73df3d31a5b310d4d0003d8 100644
--- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
@@ -658,8 +658,8 @@ class ProgramBuilder {
return !method.functionSignature.optionalParameters.isEmpty;
}
- bool _methodCanBeReflected(FunctionElement method) {
- return backend.mirrorsData.isAccessibleByReflection(method);
+ bool _methodCanBeReflected(MethodElement method) {
+ return backend.mirrorsData.isMemberAccessibleByReflection(method);
}
bool _methodCanBeApplied(FunctionElement method) {

Powered by Google App Engine
This is Rietveld 408576698