Fixed for zig master branch

This commit is contained in:
Alexandros Naskos
2020-07-24 10:33:13 +03:00
parent 1c725f85aa
commit bda78e1f76
3 changed files with 112 additions and 29 deletions

View File

@@ -296,9 +296,9 @@ fn symbolReferencesInternal(
const grouped = node.cast(ast.Node.GroupedExpression).?;
try symbolReferencesInternal(arena, store, .{ .node = grouped.expr, .handle = handle }, decl, encoding, context, handler);
},
.ControlFlowExpression => {
.Return, .Break, .Continue => {
const cfe = node.cast(ast.Node.ControlFlowExpression).?;
if (cfe.rhs) |rhs| {
if (cfe.getRHS()) |rhs| {
try symbolReferencesInternal(arena, store, .{ .node = rhs, .handle = handle }, decl, encoding, context, handler);
}
},