Fixed crash in analysis of variable declaration aliases
This commit is contained in:
parent
3ad218b3ad
commit
55ad1028fc
@ -325,7 +325,7 @@ fn resolveVarDeclAliasInternal(
|
|||||||
else => return null,
|
else => return null,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!isContainer(node_tags[resolved_node])) return null;
|
if (resolved_node >= node_tags.len or !isContainer(node_tags[resolved_node])) return null;
|
||||||
break :block NodeWithHandle{ .node = resolved_node, .handle = resolved.handle };
|
break :block NodeWithHandle{ .node = resolved_node, .handle = resolved.handle };
|
||||||
} else return null;
|
} else return null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user