aboutsummaryrefslogtreecommitdiff
path: root/src/server/symbol.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-09 09:45:33 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-09 10:11:41 -0400
commit5b4b6564584ccf544f5fe7e0ce9bafd2e77cdd09 (patch)
tree1f35776123ece621ad6309a142379c18a1b30467 /src/server/symbol.odin
parent3e183972229782baefc269d8ca940a60caad83c1 (diff)
Implement method to resolve poly return types based on the types of local variables
Diffstat (limited to 'src/server/symbol.odin')
-rw-r--r--src/server/symbol.odin4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin
index a41a310..fbf4a54 100644
--- a/src/server/symbol.odin
+++ b/src/server/symbol.odin
@@ -773,6 +773,10 @@ symbol_to_expr :: proc(symbol: Symbol, file: string, allocator := context.temp_a
case SymbolBitFieldValue:
type := new_type(ast.Bit_Field_Type, pos, end, allocator)
return type
+ case SymbolMultiPointerValue:
+ type := new_type(ast.Multi_Pointer_Type, pos, end, allocator)
+ type.elem = v.expr
+ return type
case:
return nil
}