| ... | @@ -950,6 +950,12 @@ fn walkInstruction( | ... | @@ -950,6 +950,12 @@ fn walkInstruction( |
| 950 | need_type, | 950 | need_type, |
| 951 | ); | 951 | ); |
| 952 | }, | 952 | }, |
| | 953 | .ret_type => { |
| | 954 | return DocData.WalkResult{ |
| | 955 | .typeRef = .{ .type = @enumToInt(Ref.type_type) }, |
| | 956 | .expr = .{ .type = @enumToInt(Ref.type_type) }, |
| | 957 | }; |
| | 958 | }, |
| 953 | .ret_node => { | 959 | .ret_node => { |
| 954 | const un_node = data[inst_index].un_node; | 960 | const un_node = data[inst_index].un_node; |
| 955 | return self.walkRef(file, parent_scope, parent_src, un_node.operand, false); | 961 | return self.walkRef(file, parent_scope, parent_src, un_node.operand, false); |
| ... | @@ -3987,7 +3993,7 @@ fn getGenericReturnType( | ... | @@ -3987,7 +3993,7 @@ fn getGenericReturnType( |
| 3987 | body_end: usize, | 3993 | body_end: usize, |
| 3988 | ) !DocData.Expr { | 3994 | ) !DocData.Expr { |
| 3989 | // TODO: compute the correct line offset | 3995 | // TODO: compute the correct line offset |
| 3990 | const wr = try self.walkInstruction(file, scope, parent_src, body_end, false); | 3996 | const wr = try self.walkInstruction(file, scope, parent_src, body_end - 3, false); |
| 3991 | return wr.expr; | 3997 | return wr.expr; |
| 3992 | } | 3998 | } |
| 3993 | | 3999 | |