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

Unified Diff: frog/leg/universe.dart

Issue 9705025: const constructors with optional arguments. (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
Index: frog/leg/universe.dart
diff --git a/frog/leg/universe.dart b/frog/leg/universe.dart
index 013228b7053265c5309b5b6add0c3c4880f19af8..299fc280c068c17f100ccab80e2fef44ccc21e19 100644
--- a/frog/leg/universe.dart
+++ b/frog/leg/universe.dart
@@ -149,7 +149,8 @@ class Selector implements Hashable {
// 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(visitArgument(namedArgument.expression));
}
Link<Element> remainingNamedParameters = parameters.optionalParameters;

Powered by Google App Engine
This is Rietveld 408576698