Skip to content

Commit

Permalink
[walker] Walk function ids
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Aug 11, 2015
1 parent f3f6b61 commit 7460794
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/walk/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7460794

Please sign in to comment.