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 location for elided members #98

Merged
merged 2 commits into from Apr 18, 2023
Merged

Fix location for elided members #98

merged 2 commits into from Apr 18, 2023

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Apr 18, 2023

The change in smithy-lang/smithy#1715 which was released with Smithy 1.30.0 fixed the source location of members which are mixed-in, but not re-defined within a structure. This fix resulted in builds for the Language Server failing, as noted in #97.

This PR updates the tests and logic to determine the proper location for mixed-in members that are not re-defined within a structure. Instead of a zero-length location at the start of the structure, members which are not re-defined within the containing structure will instead use the location of the mixed-in member.

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 April 18, 2023 18:53
…tor.java

Co-authored-by: Steven Yuan <s.yuan.all@gmail.com>
@srchase srchase merged commit e467548 into main Apr 18, 2023
9 checks passed
@srchase srchase deleted the fix-member-source-location branch April 18, 2023 21:46
@srchase srchase mentioned this pull request Apr 19, 2023
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

3 participants