| ... | @@ -1153,14 +1153,15 @@ fn walkInstruction( | ... | @@ -1153,14 +1153,15 @@ fn walkInstruction( |
| 1153 | }, | 1153 | }, |
| 1154 | .closure_get => { | 1154 | .closure_get => { |
| 1155 | const inst_node = data[@intFromEnum(inst)].inst_node; | 1155 | const inst_node = data[@intFromEnum(inst)].inst_node; |
| 1156 | return try self.walkInstruction( | 1156 | |
| 1157 | file, | 1157 | const code = try self.getBlockSource(file, parent_src, inst_node.src_node); |
| 1158 | parent_scope, | 1158 | const idx = self.comptime_exprs.items.len; |
| 1159 | parent_src, | 1159 | try self.exprs.append(self.arena, .{ .comptimeExpr = idx }); |
| 1160 | inst_node.inst, | 1160 | try self.comptime_exprs.append(self.arena, .{ .code = code }); |
| 1161 | need_type, | 1161 | |
| 1162 | call_ctx, | 1162 | return DocData.WalkResult{ |
| 1163 | ); | 1163 | .expr = .{ .comptimeExpr = idx }, |
| | 1164 | }; |
| 1164 | }, | 1165 | }, |
| 1165 | .closure_capture => { | 1166 | .closure_capture => { |
| 1166 | const un_tok = data[@intFromEnum(inst)].un_tok; | 1167 | const un_tok = data[@intFromEnum(inst)].un_tok; |