diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-06 18:27:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-06 18:27:03 -0400 |
| commit | d0262987d39741f9774fd7de8d9c4b331308a968 (patch) | |
| tree | a42d36599908a4d52e7f201686c4b4701a095f40 /src/server | |
| parent | c3110e2561b141dac0f1345d811ab7a54ded0d3b (diff) | |
| parent | b227fafa83e2cf06f961534b6b0f512e5354c9db (diff) | |
Merge pull request #974 from BradLewis/fix/completion-poly-type-narrowing
Add completion for poly type narrowing
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/completion.odin | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index 29ae7bb..732a940 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -1553,6 +1553,12 @@ get_identifier_completion :: proc( if position_context.identifier != nil { if ident, ok := position_context.identifier.derived.(^ast.Ident); ok { lookup_name = ident.name + } else if poly, ok := position_context.identifier.derived.(^ast.Poly_Type); ok { + if poly.specialization != nil { + if ident, ok := poly.specialization.derived.(^ast.Ident); ok { + lookup_name = ident.name + } + } } } |