Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly translate no-message calls' message locations #395

Merged
merged 2 commits into from
Jan 6, 2025
Merged

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jan 6, 2025

Motivation

Fixes #394

In cases like foo.(), the message would be :call, but the message location would have null start and end. In this case, we need to fall back to use the call operator location.

With #394 fixed, Prism is now passing all non-error-recovery LSP tests too. So in this PR I also add LSP tests into Prism Corpus tests.

Test plan

See included automated tests.

In cases like `foo.()`, the message would be `:call`, but the message location
would have null start and end. In this case, we need to fall back to use
the call operator location.
@st0012 st0012 requested review from amomchilov and egiurleo January 6, 2025 19:20
@st0012 st0012 self-assigned this Jan 6, 2025
@st0012 st0012 enabled auto-merge January 6, 2025 19:59
@st0012 st0012 merged commit 29be814 into prism Jan 6, 2025
1 check passed
@st0012 st0012 deleted the fix-#394 branch January 6, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

//test:test_PosTests/testdata/lsp/rename/method_operator_renames_prism
2 participants