From beeef74c3b73e1aced5de53d1b6102e1872fa164 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 19 Jul 2025 09:13:13 -0400 Subject: Add hover information for where clause variables --- src/server/analysis.odin | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 3583a64..27b8f5c 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -4779,6 +4779,13 @@ get_document_position_node :: proc(node: ^ast.Node, position_context: ^DocumentP } else if position_in_node(n.type, position_context.position) { position_context.function = cast(^Proc_Lit)node get_document_position(n.type, position_context) + } else { + for clause in n.where_clauses { + if position_in_node(clause, position_context.position) { + position_context.function = cast(^Proc_Lit)node + get_document_position(clause, position_context) + } + } } case ^Comp_Lit: //only set this for the parent comp literal, since we will need to walk through it to infer types. -- cgit v1.2.3