fix iterateChildren on if (#951)

This commit is contained in:
Techatrix 2023-02-01 13:11:45 +01:00 committed by GitHub
parent 7b3cc1d6d4
commit 767cf7a52d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1406,7 +1406,7 @@ pub fn iterateChildren(
.@"if", .@"if",
.if_simple, .if_simple,
=> { => {
const if_ast = ifFull(tree, node).ast; const if_ast = fullIf(tree, node).?.ast;
try callback(context, if_ast.cond_expr); try callback(context, if_ast.cond_expr);
try callback(context, if_ast.then_expr); try callback(context, if_ast.then_expr);
try callback(context, if_ast.else_expr); try callback(context, if_ast.else_expr);