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

[DMS-41] Fix locations for while loop invariants #29

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

DK318
Copy link
Member

@DK318 DK318 commented Jun 13, 2024

Problem

If an error occurs in the loop invariant the whole while loop would be highlighted.

Solution

This issue was fixed by adding an invariant to the source mapper (adding its location to marks array + surrounding the format string with \017 and \019) and assigning the correct location to the invariant itself.

Fixed Result

image

@DK318 DK318 force-pushed the motoko-san/while-loop-invariants-locations-fix branch from 59094dd to 4c1d28a Compare June 17, 2024 12:40
@DK318 DK318 merged commit 769eefd into master Jun 17, 2024
1 of 4 checks passed
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