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

Unified Diff: lib/compiler/implementation/closure.dart

Issue 11151015: Landing Peter's fix for function-typed field initializer arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file. Created 8 years, 2 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 | tests/language/function_type_parameter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/closure.dart
diff --git a/lib/compiler/implementation/closure.dart b/lib/compiler/implementation/closure.dart
index 6e112535d5ebdfe60eb0478059d7a355c24264dd..be78e41c919c487ddb13ac78de2c959367e3c7be 100644
--- a/lib/compiler/implementation/closure.dart
+++ b/lib/compiler/implementation/closure.dart
@@ -312,9 +312,12 @@ class ClosureTranslator extends Visitor {
// We still need to visit the right-hand sides of the init-assignments.
// For SendSets don't visit the left again. Otherwise it would be marked
// as mutated.
- if (definition is SendSet) {
- SendSet assignment = definition;
- visit(assignment.argumentsNode);
+ if (definition is Send) {
+ Send assignment = definition;
+ Node arguments = assignment.argumentsNode;
+ if (arguments != null) {
+ visit(arguments);
+ }
} else {
visit(definition);
}
« no previous file with comments | « no previous file | tests/language/function_type_parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698