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

Unified Diff: pkg/compiler/lib/src/dump_info.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/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index 5bda2f3797b24aef47aa4dc301fb2b3601ea43a0..fcf1293e75fbb75af1f993bf3fae0adb6c4ed464 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -262,7 +262,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
// TODO(sigmund): why all these checks?
if (element.isInstanceMember &&
!element.isAbstract &&
- closedWorld.allFunctions.contains(element)) {
+ closedWorld.allFunctions.contains(element as MemberElement)) {
returnType = '${element.type.returnType}';
}
String inferredReturnType = '${_resultOf(element).returnType}';
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/closure_tracer.dart » ('j') | pkg/compiler/lib/src/inferrer/closure_tracer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698