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

Unified Diff: lib/src/js/template.dart

Issue 1677863002: Use default params when --destructure-named-params + fix renaming of reserved destructured params (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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 | « lib/src/js/printer.dart ('k') | test/codegen/destructuring.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/template.dart
diff --git a/lib/src/js/template.dart b/lib/src/js/template.dart
index 0dea734d868b1611203d44eaae9f4041bafb21c8..c13218e29793ac755ab70a9e6ed3082cfd61c8b2 100644
--- a/lib/src/js/template.dart
+++ b/lib/src/js/template.dart
@@ -857,6 +857,10 @@ class InstantiatorGeneratorVisitor implements NodeVisitor<Instantiator> {
makeVars.map((m) => m(arguments)).toList());
};
}
+
+ @override
+ Instantiator visitSimpleBindingPattern(SimpleBindingPattern node) =>
+ (arguments) => new SimpleBindingPattern(new Identifier(node.name.name));
}
/**
« no previous file with comments | « lib/src/js/printer.dart ('k') | test/codegen/destructuring.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698