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

Added Reporting.loc_range_to_src #482

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

rod7760
Copy link
Contributor

@rod7760 rod7760 commented Mar 28, 2024

Moved the function to src/lib/Reporting.ml, so the JSON backend here can use it.

Copy link

Test Results

    9 files  ±0     20 suites  ±0   0s ⏱️ ±0s
  615 tests ±0    615 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 978 runs  ±0  1 977 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 7b66e6e. ± Comparison against base commit 361f598.

@Alasdair
Copy link
Collaborator

lgtm, Thanks!

@Alasdair Alasdair merged commit 8070149 into rems-project:sail2 Mar 29, 2024
3 checks passed
@Alasdair
Copy link
Collaborator

Alasdair commented Mar 29, 2024

At some point I do want to move to keeping the source around in memory so we don't have to go off and read it from the file again to display it. That will work better with any future LSP mode and would avoid TOCTOU-like issues in general. So having functions like this in the main library is probably good in principle.

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.

2 participants