You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: