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

Set source locations on smithy-diff events #2001

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Oct 5, 2023

This PR updates smithy-diff evaluators to set source locations on the emitted events where the source location was missing previously.

For events where something is removed from a model (member, trait definition, etc), the location from the old model is used. For events where something is added or modified within a model, the location from the new model is used.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@srchase srchase requested a review from a team as a code owner October 5, 2023 20:19
@srchase srchase force-pushed the smithy-diff-source-locations branch from a13a449 to 9c0c65c Compare October 11, 2023 20:08
@srchase srchase merged commit b80822e into smithy-lang:main Oct 11, 2023
10 checks passed
@srchase srchase deleted the smithy-diff-source-locations branch October 11, 2023 21:55
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