Skip to content

Commit

Permalink
JS: fix walk ClassDecl typo
Browse files Browse the repository at this point in the history
  • Loading branch information
psilva261 committed Jan 30, 2022
1 parent 1e0dbbe commit 6734237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ func Walk(v IVisitor, n INode) {
}

if n.Methods != nil {
for i := 0; i < len(n.Definitions); i++ {
Walk(v, &n.Definitions[i])
for i := 0; i < len(n.Methods); i++ {
Walk(v, n.Methods[i])
}
}
case *LiteralExpr:
Expand Down

0 comments on commit 6734237

Please sign in to comment.