-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add support for scanning exception regions #17
Comments
vitek-karas
added a commit
that referenced
this issue
Oct 12, 2021
Scan method body instructions for all opcodes which take a token operand. Create static dependency nodes for all tokens found. Rewrite the method body when writing output to update all tokens in it. I improved the tests to validate member removal as well. Implementation notes: - Brings in ILReader and ILOpcode form the type system - For now implemented ThrowHelper stub since the type system code uses this. What's missing: Scanning exception regions and reporting dependencies for tokens in them Rewriting exception regions and updating tokens in them I added #17 to track that work.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Valid once #16 is merged.
Repro:
Update the repro program by changing Main to contain try/catch/finally and calling some new methods from the catch and finally regions.
Fix:
bodyBlock.ExceptionRegions
to get to the exception regions in the original methodDon't forget (or add an issue for) about filter blocks.
The text was updated successfully, but these errors were encountered: