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

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

Issue 1299413002: Move common identifiers, names and selectors to a separate library. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 4 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/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 d40a34919a4268ee51a59272ed6bd19c1672ca2e..8036ea860ab9687b57edd125ef719ccbc49a7fbf 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -7,6 +7,8 @@ library simple_types_inferrer;
import '../closure.dart' show
ClosureClassMap,
ClosureScope;
+import '../common/names.dart' show
+ Selectors;
import '../compiler.dart' show
Compiler;
import '../constants/values.dart' show
@@ -438,12 +440,12 @@ abstract class InferrerEngine<T, V extends TypeSystem>
elements.setTypeMask(node, mask);
} else {
assert(astNode.asForIn() != null);
- if (selector == compiler.iteratorSelector) {
+ if (selector == Selectors.iterator) {
elements.setIteratorTypeMask(node, mask);
- } else if (selector == compiler.currentSelector) {
+ } else if (selector == Selectors.current) {
elements.setCurrentTypeMask(node, mask);
} else {
- assert(selector == compiler.moveNextSelector);
+ assert(selector == Selectors.moveNext);
elements.setMoveNextTypeMask(node, mask);
}
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/node_tracer.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698