Commit 1cfa42f
committed
fix: Refine iterator and async method body scanning
Instead of resolving the first newobj instruction, search all newobj
instructions for the first type that actually declares a MoveNext method.
This prevents picking up an unrelated compiler-generated object.
Fixes #280
Signed-off-by: Optano-Dev <69143350+Optano-Dev@users.noreply.github.com>1 parent 312f823 commit 1cfa42f
1 file changed
Lines changed: 23 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
868 | | - | |
869 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
870 | 881 | | |
871 | 882 | | |
872 | 883 | | |
| |||
898 | 909 | | |
899 | 910 | | |
900 | 911 | | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
905 | 921 | | |
906 | 922 | | |
907 | 923 | | |
| |||
0 commit comments