| ... | @@ -4920,6 +4920,8 @@ fn structDeclInner( | ... | @@ -4920,6 +4920,8 @@ fn structDeclInner( |
| 4920 | | 4920 | |
| 4921 | // Before any field bodies comes the backing int type, if specified. | 4921 | // Before any field bodies comes the backing int type, if specified. |
| 4922 | const backing_int_type_body_len: ?u32 = if (maybe_backing_int_node.unwrap()) |backing_int_node| len: { | 4922 | const backing_int_type_body_len: ?u32 = if (maybe_backing_int_node.unwrap()) |backing_int_node| len: { |
| | 4923 | block_scope.src_baseline = backing_int_node; |
| | 4924 | defer block_scope.src_baseline = node; |
| 4923 | if (layout != .@"packed") return astgen.failNode( | 4925 | if (layout != .@"packed") return astgen.failNode( |
| 4924 | backing_int_node, | 4926 | backing_int_node, |
| 4925 | "non-packed struct does not support backing integer type", | 4927 | "non-packed struct does not support backing integer type", |
| ... | @@ -5215,6 +5217,8 @@ fn unionDeclInner( | ... | @@ -5215,6 +5217,8 @@ fn unionDeclInner( |
| 5215 | | 5217 | |
| 5216 | // Before any field bodies comes the tag/backing type, if specified. | 5218 | // Before any field bodies comes the tag/backing type, if specified. |
| 5217 | const arg_type_body_len: ?u32 = if (opt_arg_node.unwrap()) |arg_node| len: { | 5219 | const arg_type_body_len: ?u32 = if (opt_arg_node.unwrap()) |arg_node| len: { |
| | 5220 | block_scope.src_baseline = arg_node; |
| | 5221 | defer block_scope.src_baseline = node; |
| 5218 | astgen.src_hasher.update(astgen.tree.getNodeSource(arg_node)); | 5222 | astgen.src_hasher.update(astgen.tree.getNodeSource(arg_node)); |
| 5219 | const type_ref = try typeExpr(&block_scope, &namespace.base, arg_node); | 5223 | const type_ref = try typeExpr(&block_scope, &namespace.base, arg_node); |
| 5220 | if (!block_scope.endsWithNoReturn()) { | 5224 | if (!block_scope.endsWithNoReturn()) { |
| ... | @@ -5435,6 +5439,8 @@ fn containerDecl( | ... | @@ -5435,6 +5439,8 @@ fn containerDecl( |
| 5435 | | 5439 | |
| 5436 | // Before any field bodies comes the tag type, if specified. | 5440 | // Before any field bodies comes the tag type, if specified. |
| 5437 | const tag_type_body_len: ?u32 = if (container_decl.ast.arg.unwrap()) |tag_type_node| len: { | 5441 | const tag_type_body_len: ?u32 = if (container_decl.ast.arg.unwrap()) |tag_type_node| len: { |
| | 5442 | block_scope.src_baseline = tag_type_node; |
| | 5443 | defer block_scope.src_baseline = node; |
| 5438 | astgen.src_hasher.update(astgen.tree.getNodeSource(tag_type_node)); | 5444 | astgen.src_hasher.update(astgen.tree.getNodeSource(tag_type_node)); |
| 5439 | const type_ref = try typeExpr(&block_scope, &namespace.base, tag_type_node); | 5445 | const type_ref = try typeExpr(&block_scope, &namespace.base, tag_type_node); |
| 5440 | if (!block_scope.endsWithNoReturn()) { | 5446 | if (!block_scope.endsWithNoReturn()) { |