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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart

Issue 2615223003: Use MemberElement instead of Element in function sets and selectors. (Closed)
Patch Set: Created 3 years, 11 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/full_emitter/nsm_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
index ad1ef5b292f1299e27215b30f85a298cfa6ef509..9f8cc28bb1410fb0145b600b47ab8cfad4ca19ea 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
@@ -61,7 +61,7 @@ class NsmEmitter extends CodeEmitterHelper {
if (reflectionName != null) {
bool accessible = closedWorld.allFunctions
.filter(selector, null)
- .any((Element e) => backend.isAccessibleByReflection(e));
+ .any((MemberElement e) => backend.isAccessibleByReflection(e));
addProperty(
namer.asName('+$reflectionName'), js(accessible ? '2' : '0'));
}

Powered by Google App Engine
This is Rietveld 408576698