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

Unified Diff: pkg/compiler/lib/src/universe/universe.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
Index: pkg/compiler/lib/src/universe/universe.dart
diff --git a/pkg/compiler/lib/src/universe/universe.dart b/pkg/compiler/lib/src/universe/universe.dart
index 0574af8abc2b9d3e9c12d2fd8fe517e2934b6cad..c5da864ad0b354b181a6146671a4b001ca840e45 100644
--- a/pkg/compiler/lib/src/universe/universe.dart
+++ b/pkg/compiler/lib/src/universe/universe.dart
@@ -745,7 +745,7 @@ class Selector {
new CallStructure(arity, namedArguments));
} else {
return new Selector.call(
- name, arity, namedArguments);
+ name, new CallStructure(arity, namedArguments));
}
} else if (element.isSetter) {
return new Selector.setter(name);
@@ -789,11 +789,8 @@ class Selector {
=> new Selector(SelectorKind.INDEX, INDEX_SET_NAME,
CallStructure.TWO_ARGS);
- factory Selector.call(Name name,
- int arity,
- [List<String> namedArguments])
- => new Selector(SelectorKind.CALL, name,
- new CallStructure(arity, namedArguments));
+ factory Selector.call(Name name, CallStructure callStructure)
+ => new Selector(SelectorKind.CALL, name, callStructure);
factory Selector.callClosure(int arity, [List<String> namedArguments])
=> new Selector(SelectorKind.CALL, CALL_NAME,

Powered by Google App Engine
This is Rietveld 408576698