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

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

Issue 2935663002: Remove Compiler.commonElements (Closed)
Patch Set: Remove Compiler._commonElements Created 3 years, 6 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/inferrer/map_tracer.dart ('k') | pkg/compiler/lib/src/js_backend/backend.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 b30ae28563a0d665c971f998951a522aa04b2492..df7dd31a7ccb08f7a4ab8d2bc6e733daa5a8996f 100644
--- a/pkg/compiler/lib/src/inferrer/node_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart
@@ -406,7 +406,8 @@ abstract class TracerVisitor implements TypeInformationVisitor {
*/
bool isParameterOfListAddingMethod(Element element) {
if (!element.isRegularParameter) return false;
- if (element.enclosingClass != compiler.commonElements.jsArrayClass) {
+ if (element.enclosingClass !=
+ inferrer.closedWorld.commonElements.jsArrayClass) {
return false;
}
String name = element.enclosingElement.name;
@@ -420,7 +421,8 @@ abstract class TracerVisitor implements TypeInformationVisitor {
*/
bool isParameterOfMapAddingMethod(Element element) {
if (!element.isRegularParameter) return false;
- if (element.enclosingClass != compiler.commonElements.mapLiteralClass) {
+ if (element.enclosingClass !=
+ inferrer.closedWorld.commonElements.mapLiteralClass) {
return false;
}
String name = element.enclosingElement.name;
« no previous file with comments | « pkg/compiler/lib/src/inferrer/map_tracer.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698