aboutsummaryrefslogtreecommitdiff
path: root/src/server/analysis.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-29 05:19:04 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-29 23:31:33 -0400
commit25dafecd9238317c1534012f183dc828417e3da9 (patch)
tree0fef04e1dba79e2b6f41a5f3cef7c8e08c78607f /src/server/analysis.odin
parent9854c3ec2786498c94a341183c6b901af375826a (diff)
Correctly resolve package and range of generic procs
Diffstat (limited to 'src/server/analysis.odin')
-rw-r--r--src/server/analysis.odin10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index 83aef98..4c21c81 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -2528,8 +2528,14 @@ resolve_symbol_return :: proc(ast_context: ^AstContext, symbol: Symbol, ok := tr
}
case SymbolProcedureValue:
if v.generic {
- if resolved_symbol, ok := resolve_generic_function(ast_context, v.arg_types, v.return_types, v.inlining);
- ok {
+ if resolved_symbol, ok := resolve_generic_function(
+ ast_context,
+ v.arg_types,
+ v.return_types,
+ v.inlining,
+ symbol.range,
+ symbol.uri,
+ ); ok {
return resolved_symbol, ok
} else {
return symbol, true