Skip to content

Commit efe2b0e

Browse files
committed
ast: Walk - fix ExceptHandler traversal
1 parent 88dcf55 commit efe2b0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ast/walk.go

+2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,10 @@ func Walk(ast Ast, Visit func(Ast) bool) {
375375
// Misc nodes
376376

377377
case *ExceptHandler:
378+
// ExprType Expr
378379
// Name Identifier
379380
// Body []Stmt
381+
walk(node.ExprType)
380382
walkStmts(node.Body)
381383

382384
case *Arguments:

0 commit comments

Comments
 (0)