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

Split Position from Location type hierarchy #10061

Open
wants to merge 1 commit into
base: feature/bytecode-modification
Choose a base branch
from

Conversation

Machine-Maker
Copy link
Member

@Machine-Maker Machine-Maker commented Dec 20, 2023

This is how the bytecode modification framework from #10060 is used to replace some parameter types with Position and make Location not implement Position anymore. The test plugin is setup to compile against current paper api and show that there are no compat breaks.

@Machine-Maker Machine-Maker force-pushed the feature/bytecode-modification branch from 340a97b to 77180b3 Compare December 21, 2023 06:10
@Machine-Maker Machine-Maker force-pushed the feature/position-split branch 3 times, most recently from ad1dacb to f63f5c0 Compare December 21, 2023 22:19
@Machine-Maker
Copy link
Member Author

Machine-Maker commented Dec 22, 2023

So I did a bit more converting methods and as you can see the diff has grown quite a bit. I'm starting to get hesitant to do this for more than methods with Location that we add.

One downside of not doing it all at once is it makes it slightly more annoying to work with the API before its all converted since its 2 different types.

EDIT: decided to scale back this PR to only removing Position from the Location type hierarchy and rewriting the several methods that already take Position as a parameter.

@Machine-Maker Machine-Maker force-pushed the feature/position-split branch 2 times, most recently from a607689 to d75b6c5 Compare December 22, 2023 03:19
@Machine-Maker Machine-Maker force-pushed the feature/bytecode-modification branch 2 times, most recently from b9544bf to f545498 Compare December 23, 2023 21:31
@Machine-Maker Machine-Maker force-pushed the feature/bytecode-modification branch from f545498 to 8696a8c Compare February 10, 2024 01:26
@Machine-Maker Machine-Maker force-pushed the feature/position-split branch 2 times, most recently from 6549dc8 to be4a567 Compare February 10, 2024 01:47
@Machine-Maker Machine-Maker marked this pull request as ready for review February 10, 2024 01:47
@Machine-Maker Machine-Maker requested a review from a team as a code owner February 10, 2024 01:47
@Machine-Maker Machine-Maker force-pushed the feature/bytecode-modification branch from 8696a8c to 31f14a2 Compare February 13, 2024 22:24
@Machine-Maker Machine-Maker force-pushed the feature/bytecode-modification branch from 31f14a2 to 33039cd Compare March 22, 2024 06:36
@Machine-Maker Machine-Maker force-pushed the feature/position-split branch from 06fcb36 to 5d35f62 Compare March 22, 2024 08:09
@Machine-Maker Machine-Maker force-pushed the feature/bytecode-modification branch from 33039cd to f10858e Compare August 28, 2024 05:30
@Machine-Maker Machine-Maker force-pushed the feature/position-split branch from 5d35f62 to aa08956 Compare August 28, 2024 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

2 participants