| ... | ... | @@ -4265,10 +4265,13 @@ fn structDeclInner( |
| 4265 | 4265 | // are in scope, so that field types, alignments, and default value expressions |
| 4266 | 4266 | // can refer to decls within the struct itself. |
| 4267 | 4267 | astgen.advanceSourceCursorToNode(node); |
| 4268 | // If `node == 0` then this is the root struct and all the declarations should |
| 4269 | // be relative to the beginning of the file. |
| 4270 | const decl_line = if (node == 0) 0 else astgen.source_line; |
| 4268 | 4271 | var block_scope: GenZir = .{ |
| 4269 | 4272 | .parent = &namespace.base, |
| 4270 | 4273 | .decl_node_index = node, |
| 4271 | | .decl_line = astgen.source_line, |
| 4274 | .decl_line = decl_line, |
| 4272 | 4275 | .astgen = astgen, |
| 4273 | 4276 | .force_comptime = true, |
| 4274 | 4277 | .in_defer = false, |
| ... | ... | @@ -11764,7 +11767,6 @@ fn scanDecls(astgen: *AstGen, namespace: *Scope.Namespace, members: []const Ast. |
| 11764 | 11767 | } |
| 11765 | 11768 | } |
| 11766 | 11769 | |
| 11767 | | // const index_name = try astgen.identAsString(index_token); |
| 11768 | 11770 | var s = namespace.parent; |
| 11769 | 11771 | while (true) switch (s.tag) { |
| 11770 | 11772 | .local_val => { |