| ... | @@ -2722,7 +2722,7 @@ pub const Parser = struct { | ... | @@ -2722,7 +2722,7 @@ pub const Parser = struct { |
| 2722 | continue; | 2722 | continue; |
| 2723 | } | 2723 | } |
| 2724 | | 2724 | |
| 2725 | n = while_node.body; | 2725 | return while_node.body.id != ast.Node.Id.Block; |
| 2726 | }, | 2726 | }, |
| 2727 | ast.Node.Id.For => { | 2727 | ast.Node.Id.For => { |
| 2728 | const for_node = @fieldParentPtr(ast.NodeFor, "base", n); | 2728 | const for_node = @fieldParentPtr(ast.NodeFor, "base", n); |
| ... | @@ -2731,7 +2731,7 @@ pub const Parser = struct { | ... | @@ -2731,7 +2731,7 @@ pub const Parser = struct { |
| 2731 | continue; | 2731 | continue; |
| 2732 | } | 2732 | } |
| 2733 | | 2733 | |
| 2734 | n = for_node.body; | 2734 | return for_node.body.id != ast.Node.Id.Block; |
| 2735 | }, | 2735 | }, |
| 2736 | ast.Node.Id.If => { | 2736 | ast.Node.Id.If => { |
| 2737 | const if_node = @fieldParentPtr(ast.NodeIf, "base", n); | 2737 | const if_node = @fieldParentPtr(ast.NodeIf, "base", n); |
| ... | @@ -2740,25 +2740,25 @@ pub const Parser = struct { | ... | @@ -2740,25 +2740,25 @@ pub const Parser = struct { |
| 2740 | continue; | 2740 | continue; |
| 2741 | } | 2741 | } |
| 2742 | | 2742 | |
| 2743 | n = if_node.body; | 2743 | return if_node.body.id != ast.Node.Id.Block; |
| 2744 | }, | 2744 | }, |
| 2745 | ast.Node.Id.Else => { | 2745 | ast.Node.Id.Else => { |
| 2746 | const else_node = @fieldParentPtr(ast.NodeElse, "base", n); | 2746 | const else_node = @fieldParentPtr(ast.NodeElse, "base", n); |
| 2747 | n = else_node.body; | 2747 | n = else_node.body; |
| | 2748 | continue; |
| 2748 | }, | 2749 | }, |
| 2749 | ast.Node.Id.Defer => { | 2750 | ast.Node.Id.Defer => { |
| 2750 | const defer_node = @fieldParentPtr(ast.NodeDefer, "base", n); | 2751 | const defer_node = @fieldParentPtr(ast.NodeDefer, "base", n); |
| 2751 | n = defer_node.expr; | 2752 | return defer_node.expr.id != ast.Node.Id.Block; |
| 2752 | }, | 2753 | }, |
| 2753 | ast.Node.Id.Comptime => { | 2754 | ast.Node.Id.Comptime => { |
| 2754 | const comptime_node = @fieldParentPtr(ast.NodeComptime, "base", n); | 2755 | const comptime_node = @fieldParentPtr(ast.NodeComptime, "base", n); |
| 2755 | n = comptime_node.expr; | 2756 | return comptime_node.expr.id != ast.Node.Id.Block; |
| 2756 | }, | 2757 | }, |
| 2757 | ast.Node.Id.Suspend => { | 2758 | ast.Node.Id.Suspend => { |
| 2758 | const suspend_node = @fieldParentPtr(ast.NodeSuspend, "base", n); | 2759 | const suspend_node = @fieldParentPtr(ast.NodeSuspend, "base", n); |
| 2759 | if (suspend_node.body) |body| { | 2760 | if (suspend_node.body) |body| { |
| 2760 | n = body; | 2761 | return body.id != ast.Node.Id.Block; |
| 2761 | continue; | | |
| 2762 | } | 2762 | } |
| 2763 | | 2763 | |
| 2764 | return true; | 2764 | return true; |