mirror of
https://github.com/ziglang/zig.git
synced 2026-02-16 06:18:32 +00:00
Fix access of undefined field when calling ast.Tree.dump
This commit is contained in:
parent
fe415dae04
commit
5e8186a8ce
@ -967,7 +967,9 @@ pub const Node = struct {
|
||||
pub fn iterate(self: *ParamDecl, index: usize) ?*Node {
|
||||
var i = index;
|
||||
|
||||
if (i < 1) return self.type_node;
|
||||
if (i < 1) {
|
||||
return if (self.var_args_token == null) self.type_node else null;
|
||||
}
|
||||
i -= 1;
|
||||
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user