From b4aef753e7f65c0919c6c40b2b28d9f149bc81ed Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 16 Jan 2018 17:03:12 +0800 Subject: general improvements around `AST_ForIn` (#2796) - compress using `collapse_vars` - remove unused `name` - simplify `loop_body` --- lib/ast.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/ast.js') diff --git a/lib/ast.js b/lib/ast.js index 65918675..4e41659c 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -267,11 +267,10 @@ var AST_For = DEFNODE("For", "init condition step", { } }, AST_IterationStatement); -var AST_ForIn = DEFNODE("ForIn", "init name object", { +var AST_ForIn = DEFNODE("ForIn", "init object", { $documentation: "A `for ... in` statement", $propdoc: { init: "[AST_Node] the `for/in` initialization code", - name: "[AST_SymbolRef?] the loop variable, only if `init` is AST_Var", object: "[AST_Node] the object that we're looping through" }, _walk: function(visitor) { -- cgit v1.2.3