Working on the ast_from_node function (redirected statements)

This commit is contained in:
Maieul BOYER 2024-07-01 13:01:44 +02:00
parent 175efe0f2f
commit 0b5b5e4d7e
No known key found for this signature in database

View file

@ -1052,8 +1052,7 @@ t_error build_sym_redirected_statement(t_parse_node self, t_const_str input, t_a
{ {
if (ast_from_node(ts_node_child(self, i++), input, &ret)) if (ast_from_node(ts_node_child(self, i++), input, &ret))
return (ast_free(ret_tmp), ERROR); return (ast_free(ret_tmp), ERROR);
else continue;
ret_tmp = NULL;
} }
if (ast_from_node(ts_node_child(self, i++), input, &tmp)) if (ast_from_node(ts_node_child(self, i++), input, &tmp))
return ((void)!((ret != ret_tmp) && (ast_free(ret_tmp), true)), ast_free(ret), ERROR); return ((void)!((ret != ret_tmp) && (ast_free(ret_tmp), true)), ast_free(ret), ERROR);