| ... | ... | @@ -5148,6 +5148,7 @@ fn ifExpr( |
| 5148 | 5148 | else |
| 5149 | 5149 | false; |
| 5150 | 5150 | |
| 5151 | try emitDbgNode(parent_gz, if_full.ast.cond_expr); |
| 5151 | 5152 | const cond: struct { |
| 5152 | 5153 | inst: Zir.Inst.Ref, |
| 5153 | 5154 | bool_bit: Zir.Inst.Ref, |
| ... | ... | @@ -5458,6 +5459,7 @@ fn whileExpr( |
| 5458 | 5459 | else |
| 5459 | 5460 | false; |
| 5460 | 5461 | |
| 5462 | try emitDbgNode(parent_gz, while_full.ast.cond_expr); |
| 5461 | 5463 | const cond: struct { |
| 5462 | 5464 | inst: Zir.Inst.Ref, |
| 5463 | 5465 | bool_bit: Zir.Inst.Ref, |
| ... | ... | @@ -5678,6 +5680,8 @@ fn forExpr( |
| 5678 | 5680 | else |
| 5679 | 5681 | false; |
| 5680 | 5682 | |
| 5683 | try emitDbgNode(parent_gz, for_full.ast.cond_expr); |
| 5684 | |
| 5681 | 5685 | const cond_rl: ResultLoc = if (payload_is_ref) .ref else .none; |
| 5682 | 5686 | const array_ptr = try expr(parent_gz, scope, cond_rl, for_full.ast.cond_expr); |
| 5683 | 5687 | const len = try parent_gz.addUnNode(.indexable_ptr_len, array_ptr, for_full.ast.cond_expr); |
| ... | ... | @@ -7810,6 +7814,19 @@ fn callExpr( |
| 7810 | 7814 | break :blk .auto; |
| 7811 | 7815 | }; |
| 7812 | 7816 | |
| 7817 | { |
| 7818 | astgen.advanceSourceCursor(astgen.tree.tokens.items(.start)[call.ast.lparen]); |
| 7819 | const line = astgen.source_line - gz.decl_line; |
| 7820 | const column = astgen.source_column; |
| 7821 | |
| 7822 | _ = try gz.add(.{ .tag = .dbg_stmt, .data = .{ |
| 7823 | .dbg_stmt = .{ |
| 7824 | .line = line, |
| 7825 | .column = column, |
| 7826 | }, |
| 7827 | } }); |
| 7828 | } |
| 7829 | |
| 7813 | 7830 | assert(callee != .none); |
| 7814 | 7831 | assert(node != 0); |
| 7815 | 7832 | |