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

Unified Diff: lib/src/js_ast/printer.dart

Issue 2016483002: Enable strong mode in DDC, fix all warnings/errors (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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_ast/nodes.dart ('k') | lib/src/js_ast/template.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js_ast/printer.dart
diff --git a/lib/src/js_ast/printer.dart b/lib/src/js_ast/printer.dart
index 87a104f364f3e774831d49589422dd795d7bf6bb..29bd7797c0335356a5e2fab89a39b3b627d5acb0 100644
--- a/lib/src/js_ast/printer.dart
+++ b/lib/src/js_ast/printer.dart
@@ -1406,7 +1406,9 @@ class VarCollector extends BaseVisitor {
nested = true;
if (fun.params != null) {
for (var param in fun.params) {
- params.add(param.name);
+ // TODO(jmesserly): add ES6 support. Currently not needed because
+ // dart2js does not emit ES6 rest param or destructuring.
+ params.add((param as Identifier).name);
}
}
fun.body.accept(this);
« no previous file with comments | « lib/src/js_ast/nodes.dart ('k') | lib/src/js_ast/template.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698