diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-06-29 22:10:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-29 22:10:08 +0200 |
| commit | 386ba7d4ca2adf72800dd64f338dcc2ff4b7572d (patch) | |
| tree | 4a1449050955a0c3c15557ee57c88d184216b018 /src | |
| parent | 5a8a0548b5f2b61b381912c20972b3872d8b0795 (diff) | |
| parent | 069218700de8308862b87c35cc640cdce8f2b94b (diff) | |
Merge pull request #692 from BradLewis/fix/struct-inline-usings
Expand Struct_Type usings
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/symbol.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index a458f9e..b795a96 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -409,6 +409,8 @@ expand_usings :: proc(ast_context: ^AstContext, b: ^SymbolStructValueBuilder) { write_symbol_struct_value(ast_context, b, v, u) } } + } else if v, ok := field_expr.derived.(^ast.Struct_Type); ok { + write_struct_type(ast_context, b, v^, ast_context.field_name, {}, u) } delete_key(&ast_context.recursion_map, b.types[u]) } |