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

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

Issue 2813093002: Remove BackendClasses and JavaScriptBackendClasses. (Closed)
Patch Set: . 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
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f3fdc407c644b5c2e71587e0ccf267ed6d74fbc4..cb37946307672b288f3e362bc32fb5a6f785de1c 100644
--- a/pkg/compiler/lib/src/inferrer/node_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart
@@ -397,7 +397,7 @@ abstract class TracerVisitor implements TypeInformationVisitor {
*/
bool isParameterOfListAddingMethod(Element element) {
if (!element.isRegularParameter) return false;
- if (element.enclosingClass != compiler.backend.backendClasses.listClass) {
+ if (element.enclosingClass != compiler.commonElements.jsArrayClass) {
return false;
}
String name = element.enclosingElement.name;
@@ -411,7 +411,7 @@ abstract class TracerVisitor implements TypeInformationVisitor {
*/
bool isParameterOfMapAddingMethod(Element element) {
if (!element.isRegularParameter) return false;
- if (element.enclosingClass != compiler.backend.backendClasses.mapClass) {
+ if (element.enclosingClass != compiler.commonElements.mapLiteralClass) {
return false;
}
String name = element.enclosingElement.name;
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698