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

Unified Diff: frog/leg/resolver.dart

Issue 9701072: Revert r5529. Breaks frog and web bots. (Closed) Base URL: http://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/compile_time_constants.dart ('k') | frog/leg/universe.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/resolver.dart
===================================================================
--- frog/leg/resolver.dart (revision 5530)
+++ frog/leg/resolver.dart (working copy)
@@ -813,7 +813,6 @@
void handleArguments(Send node) {
int count = 0;
List<SourceString> namedArguments = <SourceString>[];
- bool seenNamedArgument = false;
for (Link<Node> link = node.argumentsNode.nodes;
!link.isEmpty();
link = link.tail) {
@@ -821,11 +820,8 @@
Expression argument = link.head;
visit(argument);
if (argument.asNamedArgument() != null) {
- seenNamedArgument = true;
NamedArgument named = argument;
namedArguments.add(named.name.source);
- } else if (seenNamedArgument) {
- error(argument, MessageKind.INVALID_ARGUMENT_AFTER_NAMED);
}
}
mapping.setSelector(node, new Invocation(count, namedArguments));
« no previous file with comments | « frog/leg/compile_time_constants.dart ('k') | frog/leg/universe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698