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

Fixup DiagnosticCodeHighlight and SourceLocation columns #8965

Merged
merged 18 commits into from
May 16, 2023

Conversation

mischnic
Copy link
Member

It was always (supposed to be) the case that:

  • DiagnosticCodeHighlight is 1-based and the end location is inclusive
  • SourceLocation is 1-based and the end is exclusive

But due to two cancelling off-by-one errors, many SourceLocation had an incorrect end position.

This caused problems when bumping Babel (causing more accurate sourcemaps) which caused some wrong locations to be remapped.

@devongovett
Copy link
Member

Seems like a test is failing

@mischnic mischnic merged commit be85a8c into v2 May 16, 2023
@mischnic mischnic deleted the loc-codeframe-one-off branch May 16, 2023 14:40
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.

None yet

2 participants