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

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

Issue 1433443002: Remove for-in selectors from TreeElements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove unneeded code. Created 5 years, 1 month 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 | « no previous file | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
index 086edfbec59ad5e6e62b0ee33f3bd9b2c7828370..17c53c6a8d3588314396bf725d0da1d5614e4dda 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -2283,9 +2283,9 @@ class SimpleTypeInferrerVisitor<T>
T visitAsyncForIn(ast.AsyncForIn node) {
T expressionType = visit(node.expression);
- Selector currentSelector = elements.getCurrentSelector(node);
+ Selector currentSelector = Selectors.current;
TypeMask currentMask = elements.getCurrentTypeMask(node);
- Selector moveNextSelector = elements.getMoveNextSelector(node);
+ Selector moveNextSelector = Selectors.moveNext;
TypeMask moveNextMask = elements.getMoveNextTypeMask(node);
js.JavaScriptBackend backend = compiler.backend;
@@ -2302,11 +2302,11 @@ class SimpleTypeInferrerVisitor<T>
T visitSyncForIn(ast.SyncForIn node) {
T expressionType = visit(node.expression);
- Selector iteratorSelector = elements.getIteratorSelector(node);
+ Selector iteratorSelector = Selectors.iterator;
TypeMask iteratorMask = elements.getIteratorTypeMask(node);
- Selector currentSelector = elements.getCurrentSelector(node);
+ Selector currentSelector = Selectors.current;
TypeMask currentMask = elements.getCurrentTypeMask(node);
- Selector moveNextSelector = elements.getMoveNextSelector(node);
+ Selector moveNextSelector = Selectors.moveNext;
TypeMask moveNextMask = elements.getMoveNextTypeMask(node);
T iteratorType = handleDynamicSend(
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698