Skip to content

Conversation

@Jonathing
Copy link
Member

@Jonathing Jonathing commented Oct 31, 2024

When I added InsnType to ASMAPI, it allowed the ability of searching for a specific type of instruction. This is useful for finding labels after an index, for example with ASMAPI.findFirstInstructionAfter(method, -1, ASMAPI.InsnType.LABEL, index). However, it might be desirable to search for the first instruction matching only the instruction type. This PR adds methods that account for that.

@Jonathing
Copy link
Member Author

This PR depends on #56 being merged in first. After it is merged, I will rebase this PR on top of it. For now, it includes those changes as well.

Copy link
Member

@LexManos LexManos left a comment

Choose a reason for hiding this comment

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

Looks fine, will need to be bundled with 56

@Jonathing Jonathing force-pushed the feat/jonathing/master/additional-insn-searching branch from d28151b to 62391d5 Compare November 1, 2024 21:13
@Jonathing Jonathing marked this pull request as ready for review November 1, 2024 21:13
@LexManos LexManos merged commit ba314a1 into MinecraftForge:master Nov 1, 2024
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