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

Unified Diff: frog/leg/universe.dart

Issue 9703105: Re-land r5529. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « frog/leg/resolver.dart ('k') | frog/leg/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/universe.dart
diff --git a/frog/leg/universe.dart b/frog/leg/universe.dart
index 013228b7053265c5309b5b6add0c3c4880f19af8..47b7fb2eee1844290c7bc9923ee083e283d896b0 100644
--- a/frog/leg/universe.dart
+++ b/frog/leg/universe.dart
@@ -120,11 +120,11 @@ class Selector implements Hashable {
bool addSendArgumentsToList(Send send,
List list,
FunctionParameters parameters,
- visitArgument(Node argument),
- visitConstant(Element element)) {
+ compileArgument(Node argument),
+ compileConstant(Element element)) {
void addMatchingSendArgumentsToList(Link<Node> link) {
for (; !link.isEmpty(); link = link.tail) {
- list.add(visitArgument(link.head));
+ list.add(compileArgument(link.head));
}
}
@@ -143,13 +143,14 @@ class Selector implements Hashable {
for (int i = 0;
i < positionalArgumentCount;
arguments = arguments.tail, i++) {
- list.add(visitArgument(arguments.head));
+ list.add(compileArgument(arguments.head));
}
// Visit named arguments and add them into a temporary list.
List namedArguments = [];
for (; !arguments.isEmpty(); arguments = arguments.tail) {
- namedArguments.add(visitArgument(arguments.head));
+ NamedArgument namedArgument = arguments.head;
+ namedArguments.add(compileArgument(namedArgument.expression));
}
Link<Element> remainingNamedParameters = parameters.optionalParameters;
@@ -179,7 +180,7 @@ class Selector implements Hashable {
if (foundIndex != -1) {
list.add(namedArguments[foundIndex]);
} else {
- list.add(visitConstant(parameter));
+ list.add(compileConstant(parameter));
}
}
return true;
« no previous file with comments | « frog/leg/resolver.dart ('k') | frog/leg/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698