Skip to content

[6.0][Parse] Adjust diagnostic location for platform condition arguments #72419

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Mar 19, 2024

Cherry-pick #72384 into release/6.0

  • Explanation: Previously, diagnostics for arguments of platform conditions (e.g. 'os(macOS)') used to point the condition name position instead of the argument position. Adjust the position to the start of the argument.
  • Scope: Diagnostics QoI
  • Risk: Low, only charging diagnostics
  • Testing: Updated regression test cases
  • Issues: rdar://124160048
  • Reviewers: Alex Hoppen (@ahoppen) Hamish Knight (@hamishknight)

Previously, diagnostics for arguments of platform conditions (e.g.
'os(macOS)') used to point the condition name position instead of the
argument position.
Adjust the position to the start of the argument.

rdar://124160048
(cherry picked from commit 4737212)
@rintaro rintaro requested a review from a team as a code owner March 19, 2024 14:49
@rintaro
Copy link
Member Author

rintaro commented Mar 19, 2024

@swift-ci Please test

@rintaro rintaro merged commit 025c699 into swiftlang:release/6.0 Mar 20, 2024
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