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) { |