diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-07 05:15:36 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-07 05:18:57 -0500 |
| commit | cf74b5f1133217a7454b8b932e818e891ebdefb0 (patch) | |
| tree | 2418af84f73a92e36591ae8c8752471b1e54732c /src/server/symbol.odin | |
| parent | 8d1626323b163cbce7b467b20d66c723e7605332 (diff) | |
Correctly resolve poly proc returns with #soa arrays
Diffstat (limited to 'src/server/symbol.odin')
| -rw-r--r-- | src/server/symbol.odin | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index 6cf24df..5181ca3 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -821,11 +821,21 @@ symbol_to_expr :: proc(symbol: Symbol, file: string, allocator := context.temp_a case SymbolDynamicArrayValue: type := new_type(ast.Dynamic_Array_Type, pos, end, allocator) type.elem = v.expr + if .Soa in symbol.flags { + directive := new_type(ast.Basic_Directive, pos, end, allocator) + directive.name = "soa" + type.tag = directive + } return type case SymbolFixedArrayValue: type := new_type(ast.Array_Type, pos, end, allocator) type.elem = v.expr type.len = v.len + if .Soa in symbol.flags { + directive := new_type(ast.Basic_Directive, pos, end, allocator) + directive.name = "soa" + type.tag = directive + } return type case SymbolMapValue: type := new_type(ast.Map_Type, pos, end, allocator) @@ -837,6 +847,11 @@ symbol_to_expr :: proc(symbol: Symbol, file: string, allocator := context.temp_a case SymbolSliceValue: type := new_type(ast.Array_Type, pos, end, allocator) type.elem = v.expr + if .Soa in symbol.flags { + directive := new_type(ast.Basic_Directive, pos, end, allocator) + directive.name = "soa" + type.tag = directive + } return type case SymbolStructValue: type := new_type(ast.Struct_Type, pos, end, allocator) |