From 7460794e46d3c6c1986ad7512f3beaa1396198c0 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 11 Aug 2015 16:29:19 +0200 Subject: [PATCH] [walker] Walk function ids --- src/walk/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/walk/index.js b/src/walk/index.js index ae16e9dce..461f61d1b 100644 --- a/src/walk/index.js +++ b/src/walk/index.js @@ -229,6 +229,7 @@ base.VariableDeclarator = (node, st, c) => { } base.Function = (node, st, c) => { + if (node.id) c(node.id, st, "Pattern") for (let i = 0; i < node.params.length; i++) c(node.params[i], st, "Pattern") c(node.body, st, node.expression ? "ScopeExpression" : "ScopeBody")