Skip to content

Improve position of deprecation #23052

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Apr 25, 2025

Fixes #22795

report.deprecationWarning omitted addInlineds.

It would be nice to correctly represent the inlined, spliced positions as well.

It's clearly wrong to use a span from a different file, but the question remains how to represent a position from a dependency, which is not necessarily meaningful to the user.

This provisional tweak just shows the top-level splice location in the explanation, instead of what it quotes.

@som-snytt som-snytt force-pushed the issue/22795-msg-pos branch from 2eef13f to d51cf92 Compare April 25, 2025 21:51
@som-snytt som-snytt changed the title [WIP] Spliced position respects source file Spliced position respects source file Apr 25, 2025
@som-snytt som-snytt changed the title Spliced position respects source file Improve position of deprecation Apr 25, 2025
@som-snytt som-snytt marked this pull request as ready for review April 26, 2025 04:08
@Gedochao Gedochao requested review from lrytz and jchyb April 28, 2025 08:39
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.

Deprecation warning generated via macro points to nonsense position
2 participants