| ... | ... | @@ -1589,6 +1589,11 @@ static void preview_fn_proto(CodeGen *g, ImportTableEntry *import, AstNode *prot |
| 1589 | 1589 | static void scan_struct_decl(CodeGen *g, ImportTableEntry *import, BlockContext *context, AstNode *node) { |
| 1590 | 1590 | assert(node->type == NodeTypeStructDecl); |
| 1591 | 1591 | |
| 1592 | if (node->data.struct_decl.type_entry) { |
| 1593 | // already scanned; we can ignore. This can happen from importing from an .h file. |
| 1594 | return; |
| 1595 | } |
| 1596 | |
| 1592 | 1597 | Buf *name = &node->data.struct_decl.name; |
| 1593 | 1598 | TypeTableEntry *container_type = get_partial_container_type(g, import, context, |
| 1594 | 1599 | node->data.struct_decl.kind, node, buf_ptr(name)); |