aboutsummaryrefslogtreecommitdiff
path: root/src/server/analysis.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-16 14:52:54 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-16 14:52:54 -0400
commitfc61cb706555c41d8b5afe1cf2bc93d343d960e4 (patch)
tree308705bf10eb11f69f45b40a8b2e4843d818536d /src/server/analysis.odin
parentc188c31e0eb9d4465346e337e9c8813b2cea6fd4 (diff)
Correctly resolve variadic args as a slice
Diffstat (limited to 'src/server/analysis.odin')
-rw-r--r--src/server/analysis.odin10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index 570a035..856f0ae 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -1124,7 +1124,15 @@ internal_resolve_type_expression :: proc(ast_context: ^AstContext, node: ^ast.Ex
case ^Helper_Type:
return internal_resolve_type_expression(ast_context, v.type, out)
case ^Ellipsis:
- return internal_resolve_type_expression(ast_context, v.expr, out)
+ out.range = common.get_token_range(v.node, ast_context.file.src)
+ out.type = .Type
+ out.pkg = get_package_from_node(v.node)
+ out.name = ast_context.field_name.name
+ out.uri = common.create_uri(v.pos.file, ast_context.allocator).uri
+ out.value = SymbolSliceValue {
+ expr = v.expr,
+ }
+ return true
case ^Implicit:
ident := new_type(Ident, v.node.pos, v.node.end, ast_context.allocator)
ident.name = v.tok.text