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

Unified Diff: pkg/compiler/lib/src/inferrer/node_tracer.dart

Issue 2659883002: Use entities in BackendClasses (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/inferrer/node_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/node_tracer.dart b/pkg/compiler/lib/src/inferrer/node_tracer.dart
index 52617803529eece3a87de9d89771e17b9711e87a..f07e46cd0c74437d1c8c17974401c4e24406308c 100644
--- a/pkg/compiler/lib/src/inferrer/node_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart
@@ -336,8 +336,7 @@ abstract class TracerVisitor implements TypeInformationVisitor {
*/
bool isParameterOfListAddingMethod(Element element) {
if (!element.isRegularParameter) return false;
- if (element.enclosingClass !=
- compiler.backend.backendClasses.listImplementation) {
+ if (element.enclosingClass != compiler.backend.backendClasses.listClass) {
return false;
}
Element method = element.enclosingElement;
@@ -353,8 +352,7 @@ abstract class TracerVisitor implements TypeInformationVisitor {
*/
bool isParameterOfMapAddingMethod(Element element) {
if (!element.isRegularParameter) return false;
- if (element.enclosingClass !=
- compiler.backend.backendClasses.mapImplementation) {
+ if (element.enclosingClass != compiler.backend.backendClasses.mapClass) {
return false;
}
Element method = element.enclosingElement;

Powered by Google App Engine
This is Rietveld 408576698