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

fix OriginalLine processing in lexing #17949

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

Martin521
Copy link
Contributor

Description

This PR fixes two bugs in processing Position.OriginalLine during lexing.
This field is foreseen in FsLex, but was hardly used in the compiler, and only for equality checks.
Therefore this fix does not change current compiler behavior, but will enable features like "scoped nowarn" that will depend on correct values of OriginalLine.
Note that this is not a FsLex issue, but only present in the compiler.
A test has been added to check the line numbers.

Checklist

  • Test cases added

@Martin521 Martin521 requested a review from a team as a code owner November 2, 2024 13:08
Copy link
Contributor

github-actions bot commented Nov 2, 2024

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@Martin521
Copy link
Contributor Author

Can somebody add the "no release notes" label?

Also a note to reviewers: the whole fix is just 5 characters in 1 file.

@T-Gro T-Gro added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Nov 4, 2024
@T-Gro T-Gro enabled auto-merge (squash) November 4, 2024 10:31
Copy link
Member

@psfinaki psfinaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 2 hard problems in the computer science... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants