aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-01-16 17:03:12 +0800
committerGitHub <noreply@github.com>2018-01-16 17:03:12 +0800
commitb4aef753e7f65c0919c6c40b2b28d9f149bc81ed (patch)
tree33b2c9b5ea33dd349237b8e743cdc6415669b51c /lib/ast.js
parent424173d311cd9c35a10a276abdab1de902158ac2 (diff)
downloadtracifyjs-b4aef753e7f65c0919c6c40b2b28d9f149bc81ed.tar.gz
tracifyjs-b4aef753e7f65c0919c6c40b2b28d9f149bc81ed.zip
general improvements around `AST_ForIn` (#2796)
- compress using `collapse_vars` - remove unused `name` - simplify `loop_body`
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js3
1 files changed, 1 insertions, 2 deletions
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) {