terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ IEnumerator [4/4]

class<Annotations> Newtonsoft.Json.Linq.JToken.IEnumerator
setprivateinherited

Definition at line 2816 of file JToken.cs.

2817 {
2818 // Token: 0x06000903 RID: 2307 RVA: 0x000161C0 File Offset: 0x000143C0
2821 {
2822 this.<>1__state = <>1__state;
2825 }
2826
2827 // Token: 0x06000904 RID: 2308 RVA: 0x000161F0 File Offset: 0x000143F0
2829 void IDisposable.Dispose()
2830 {
2831 }
2832
2833 // Token: 0x06000905 RID: 2309 RVA: 0x00016200 File Offset: 0x00014400
2834 private bool MoveNext()
2835 {
2836 object annotations;
2837 if (this.<>1__state == 0 && this.type != null)
2838 {
2839 annotations = this.<>4__this._annotations;
2840 if (annotations != null)
2841 {
2842 this.<annotations>5__1 = annotations;
2843 object[] array = this.<annotations>5__1;
2844 if (array != null)
2845 {
2846 this.<>1__state = array;
2847 this.<>1__state = array;
2848 }
2849 Type type = this.type;
2850 object annotations2 = this.<>4__this._annotations;
2851 JToken jtoken = this.<>4__this;
2852 int num = 2;
2853 object annotations3 = jtoken._annotations;
2854 this.<>1__state = num;
2855 this.<>2__current = annotations3;
2856 }
2857 }
2858 while (annotations == null)
2859 {
2860 }
2861 }
2862
2863 // Token: 0x170001A1 RID: 417
2864 // (get) Token: 0x06000906 RID: 2310 RVA: 0x00016290 File Offset: 0x00014490
2866 {
2868 get
2869 {
2870 return this.<>2__current;
2871 }
2872 }
2873
2874 // Token: 0x06000907 RID: 2311 RVA: 0x0000212A File Offset: 0x0000032A
2876 void IEnumerator.Reset()
2877 {
2878 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2879 }
2880
2881 // Token: 0x170001A2 RID: 418
2882 // (get) Token: 0x06000908 RID: 2312 RVA: 0x000162A4 File Offset: 0x000144A4
2883 object IEnumerator.Current
2884 {
2886 get
2887 {
2888 return this.<>2__current;
2889 }
2890 }
2891
2892 // Token: 0x06000909 RID: 2313 RVA: 0x000162B8 File Offset: 0x000144B8
2895 {
2896 /*
2897An exception occurred when decompiling this method (06000909)
2898
2899ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<System.Object> Newtonsoft.Json.Linq.JToken/<Annotations>d__172::System.Collections.Generic.IEnumerable<System.Object>.GetEnumerator()
2900
2901 ---> System.Exception: Basic block has to end with unconditional control flow.
2902{
2903 Block_0:
2904 stloc:int32(var_0_06, ldfld:int32('<Annotations>d__172'::<>1__state, ldloc:'<Annotations>d__172'(this)))
2905 stloc:int32(var_1_0D, ldfld:int32('<Annotations>d__172'::<>l__initialThreadId, ldloc:'<Annotations>d__172'(this)))
2906 stloc:int32(var_3_1A, callgetter:int32(Thread::get_ManagedThreadId, callgetter:Thread(Thread::get_CurrentThread)))
2907 stloc:JToken(var_5_24, ldfld:JToken('<Annotations>d__172'::<>4__this, ldloc:'<Annotations>d__172'(this)))
2908 stloc:Type(var_6_2C, ldfld:Type('<Annotations>d__172'::<>3__type, ldloc:'<Annotations>d__172'(this)))
2909}
2910
2911 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2912 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2913 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2914 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2915 --- End of inner exception stack trace ---
2916 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2917 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2918*/;
2919 }
2920
2921 // Token: 0x0600090A RID: 2314 RVA: 0x000162F4 File Offset: 0x000144F4
2924 {
2925 /*
2926An exception occurred when decompiling this method (0600090A)
2927
2928ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator Newtonsoft.Json.Linq.JToken/<Annotations>d__172::System.Collections.IEnumerable.GetEnumerator()
2929
2930 ---> System.Exception: Basic block has to end with unconditional control flow.
2931{
2932 Block_0:
2933 stloc:class [mscorlib]System.Collections.Generic.IEnumerator`1<object>(var_0_06, call:IEnumerator`1[exp:class [mscorlib]System.Collections.Generic.IEnumerator`1<object>]('<Annotations>d__172'::System.Collections.Generic.IEnumerable<System.Object>.GetEnumerator, ldloc:'<Annotations>d__172'(this)))
2934}
2935
2936 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2937 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2938 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2939 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2940 --- End of inner exception stack trace ---
2941 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2942 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2943*/;
2944 }
2945
2946 // Token: 0x04000363 RID: 867
2947 private int <>1__state;
2948
2949 // Token: 0x04000364 RID: 868
2950 private object <>2__current;
2951
2952 // Token: 0x04000365 RID: 869
2954
2955 // Token: 0x04000366 RID: 870
2956 private Type type;
2957
2958 // Token: 0x04000367 RID: 871
2959 public Type <>3__type;
2960
2961 // Token: 0x04000368 RID: 872
2962 public JToken <>4__this;
2963
2964 // Token: 0x04000369 RID: 873
2965 private object[] <annotations>5__1;
2966
2967 // Token: 0x0400036A RID: 874
2968 private int <i>5__2;
2969 }
class f__AnonymousType0<< Count > j__TPar
object[]< annotations > int< i >
Definition JToken.cs:2811
class< Annotations > d__172
Definition JToken.cs:2816
static Thread CurrentThread
Definition Thread.cs:381