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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/map_tracer.dart

Issue 266913017: Convert property methods into getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 6 years, 7 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: sdk/lib/_internal/compiler/implementation/inferrer/map_tracer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/map_tracer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/map_tracer.dart
index 0e98efa83c4e08d23b41538da21c568a04f3770f..7e04dc5d123043e5e8914f145dd4b92360ed0803 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/map_tracer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/map_tracer.dart
@@ -72,7 +72,7 @@ class MapTracerVisitor extends TracerVisitor<MapTypeInformation> {
String selectorName = selector.name;
if (currentUser == info.receiver) {
if (!okMapSelectorsSet.contains(selectorName)) {
- if (selector.isCall()) {
+ if (selector.isCall) {
int positionalLength = info.arguments.positional.length;
if (selectorName == 'addAll') {
// All keys and values from the argument flow into
@@ -106,16 +106,16 @@ class MapTracerVisitor extends TracerVisitor<MapTypeInformation> {
bailout('Map used in a not-ok selector [$selectorName]');
return;
}
- } else if (selector.isIndexSet()) {
+ } else if (selector.isIndexSet) {
keyAssignments.add(info.arguments.positional[0]);
valueAssignments.add(info.arguments.positional[1]);
- } else if (!selector.isIndex()) {
+ } else if (!selector.isIndex) {
bailout('Map used in a not-ok selector [$selectorName]');
return;
}
}
- } else if (selector.isCall() &&
- !info.targets.every((element) => element.isFunction())) {
+ } else if (selector.isCall &&
+ !info.targets.every((element) => element.isFunction)) {
bailout('Passed to a closure');
return;
}

Powered by Google App Engine
This is Rietveld 408576698