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

Abstract (start, end) from Spanning struct into new struct Span #1208

Merged
merged 7 commits into from
Nov 9, 2023

Conversation

audunhalland
Copy link
Contributor

This makes it easier to treat the source region (the Span) separately from the spanned item in Spanning.

@tyranron tyranron added enhancement Improvement of existing features or bugfix semver::breaking Breaking change in terms of SemVer k::api Related to API (application interface) k::refactor Refactoring, technical debt elimination and other improvements of existing code base labels Nov 9, 2023
@tyranron tyranron added this to the 0.16.0 milestone Nov 9, 2023
…ng-span

# Conflicts:
#	juniper/CHANGELOG.md
#	juniper/src/parser/document.rs
#	juniper/src/parser/parser.rs
#	juniper/src/parser/utils.rs
Copy link
Member

@tyranron tyranron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@audunhalland thanks for the effort!

I've bikeshedded your solution a bit, around accepting/returning references for Copy type in new APIs, and readability/understandability where Spanning::start()/Spanning::end() methods are used.

@audunhalland audunhalland mentioned this pull request Nov 9, 2023
@tyranron tyranron added the area::parsing Related to GraphQL parsing label Nov 9, 2023
@tyranron tyranron merged commit d0fc062 into graphql-rust:master Nov 9, 2023
@audunhalland audunhalland deleted the spanning-span branch November 9, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area::parsing Related to GraphQL parsing enhancement Improvement of existing features or bugfix k::api Related to API (application interface) k::refactor Refactoring, technical debt elimination and other improvements of existing code base semver::breaking Breaking change in terms of SemVer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants