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

Unified Diff: pkg/compiler/lib/src/common/names.dart

Issue 1314573002: Use Name instead of Selector in SemanticSendVisitor (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/names.dart
diff --git a/pkg/compiler/lib/src/common/names.dart b/pkg/compiler/lib/src/common/names.dart
index b2e99a738816224c1ac0d8faa9b7ba7f1aaf740a..a53e6a9643a26cf344313f9214502a099c729f20 100644
--- a/pkg/compiler/lib/src/common/names.dart
+++ b/pkg/compiler/lib/src/common/names.dart
@@ -10,6 +10,7 @@ import '../elements/elements.dart' show
Name,
PublicName;
import '../universe/universe.dart' show
+ CallStructure,
Selector;
/// [String]s commonly used.
@@ -60,7 +61,7 @@ class Names {
class Selectors {
/// The selector for calling the cancel method on 'StreamIterator'.
static final Selector cancel =
- new Selector.call(const PublicName('cancel'), 0);
+ new Selector.call(const PublicName('cancel'), CallStructure.NO_ARGS);
/// The selector for getting the current element property used in for-each
/// loops.
@@ -70,12 +71,20 @@ class Selectors {
static final Selector iterator = new Selector.getter(Names.iterator);
/// The selector for calling the move next method used in for-each loops.
- static final Selector moveNext = new Selector.call(Names.moveNext, 0);
+ static final Selector moveNext =
+ new Selector.call(Names.moveNext, CallStructure.NO_ARGS);
/// The selector for calling the no such method handler on 'Object'.
static final Selector noSuchMethod_ =
- new Selector.call(Names.noSuchMethod_, 1);
+ new Selector.call(Names.noSuchMethod_, CallStructure.ONE_ARG);
/// The selector for calling the to-string method on 'Object'.
- static final Selector toString_ = new Selector.call(Names.toString_, 0);
+ static final Selector toString_ =
+ new Selector.call(Names.toString_, CallStructure.NO_ARGS);
+
+ static final Selector hashCode_ =
+ new Selector.getter(const PublicName('hashCode'));
+
+ static final Selector compareTo =
+ new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698