diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-06-09 12:55:24 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-06-09 12:55:24 +0200 |
| commit | 33b5b66a53fef0ea3fd9ccec4841290050cd95f4 (patch) | |
| tree | 3e656887b76fed9b1cc1b59bf0addd04f7596f74 /src/server/analysis.odin | |
| parent | ada14e0c911a11129daafbd486386e761661f40b (diff) | |
Improve reference testing
Diffstat (limited to 'src/server/analysis.odin')
| -rw-r--r-- | src/server/analysis.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index acd5733..7b4d125 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -4797,14 +4797,14 @@ get_document_position_node :: proc( case ^Ellipsis: get_document_position(n.expr, position_context) case ^Proc_Lit: - get_document_position(n.type, position_context) - if position_in_node(n.body, position_context.position) { + get_document_position(n.type, position_context) position_context.function = cast(^Proc_Lit)node append(&position_context.functions, position_context.function) get_document_position(n.body, position_context) } else if position_in_node(n.type, position_context.position) { position_context.function = cast(^Proc_Lit)node + get_document_position(n.type, position_context) } case ^Comp_Lit: //only set this for the parent comp literal, since we will need to walk through it to infer types. |