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

class<GetDescendants> Newtonsoft.Json.Linq.JContainer.IEnumerator
setprivateinherited

Definition at line 880 of file JContainer.cs.

881 {
882 // Token: 0x0600079C RID: 1948 RVA: 0x0001349C File Offset: 0x0001169C
885 {
886 this.<>1__state = <>1__state;
889 }
890
891 // Token: 0x0600079D RID: 1949 RVA: 0x000134CC File Offset: 0x000116CC
893 void IDisposable.Dispose()
894 {
895 int num = this.<>1__state;
896 }
897
898 // Token: 0x0600079E RID: 1950 RVA: 0x0001350C File Offset: 0x0001170C
899 private bool MoveNext()
900 {
901 int num = this.<>1__state;
902 if (this.self)
903 {
904 JContainer jcontainer = this.<>4__this;
905 int num2 = 1;
906 this.<>1__state = num2;
907 this.<>2__current = jcontainer;
908 JToken jtoken = this.<o>5__1;
909 this.<>1__state = jcontainer;
910 if (jtoken != null)
911 {
912 }
913 }
914 long value = 0.m_value;
915 int value2 = 1.m_value;
916 throw new OutOfMemoryException();
917 }
918
919 // Token: 0x0600079F RID: 1951 RVA: 0x00013574 File Offset: 0x00011774
920 private void <>m__Finally1()
921 {
922 int num = 1;
923 IEnumerator<JToken> enumerator = this.<>7__wrap1;
924 this.<>1__state = num;
925 if (enumerator != null)
926 {
927 return;
928 }
929 }
930
931 // Token: 0x060007A0 RID: 1952 RVA: 0x00013598 File Offset: 0x00011798
932 private void <>m__Finally2()
933 {
934 int num = 1;
935 IEnumerator<JToken> enumerator = this.<>7__wrap2;
936 this.<>1__state = num;
937 if (enumerator != null)
938 {
939 return;
940 }
941 }
942
943 // Token: 0x17000174 RID: 372
944 // (get) Token: 0x060007A1 RID: 1953 RVA: 0x000135BC File Offset: 0x000117BC
946 {
948 get
949 {
950 return this.<>2__current;
951 }
952 }
953
954 // Token: 0x060007A2 RID: 1954 RVA: 0x0000212A File Offset: 0x0000032A
956 void IEnumerator.Reset()
957 {
958 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
959 }
960
961 // Token: 0x17000175 RID: 373
962 // (get) Token: 0x060007A3 RID: 1955 RVA: 0x000135D0 File Offset: 0x000117D0
964 {
966 get
967 {
968 /*
969An exception occurred when decompiling this method (060007A3)
970
971ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object Newtonsoft.Json.Linq.JContainer/<GetDescendants>d__29::System.Collections.IEnumerator.get_Current()
972
973 ---> System.Exception: Basic block has to end with unconditional control flow.
974{
975 Block_0:
976 stloc:JToken(var_0_06, ldfld:JToken('<GetDescendants>d__29'::<>2__current, ldloc:'<GetDescendants>d__29'(this)))
977}
978
979 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
980 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
981 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
982 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
983 --- End of inner exception stack trace ---
984 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
985 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
986*/;
987 }
988 }
989
990 // Token: 0x060007A4 RID: 1956 RVA: 0x000135E4 File Offset: 0x000117E4
993 {
994 /*
995An exception occurred when decompiling this method (060007A4)
996
997ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<Newtonsoft.Json.Linq.JToken> Newtonsoft.Json.Linq.JContainer/<GetDescendants>d__29::System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JToken>.GetEnumerator()
998
999 ---> System.Exception: Basic block has to end with unconditional control flow.
1000{
1001 Block_0:
1002 stloc:int32(var_0_06, ldfld:int32('<GetDescendants>d__29'::<>1__state, ldloc:'<GetDescendants>d__29'(this)))
1003 stloc:int32(var_1_0D, ldfld:int32('<GetDescendants>d__29'::<>l__initialThreadId, ldloc:'<GetDescendants>d__29'(this)))
1004 stloc:int32(var_3_1A, callgetter:int32(Thread::get_ManagedThreadId, callgetter:Thread(Thread::get_CurrentThread)))
1005 stloc:JContainer(var_5_24, ldfld:JContainer('<GetDescendants>d__29'::<>4__this, ldloc:'<GetDescendants>d__29'(this)))
1006 stloc:bool(var_6_2C, ldfld:bool('<GetDescendants>d__29'::<>3__self, ldloc:'<GetDescendants>d__29'(this)))
1007}
1008
1009 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
1010 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
1011 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
1012 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
1013 --- End of inner exception stack trace ---
1014 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
1015 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
1016*/;
1017 }
1018
1019 // Token: 0x060007A5 RID: 1957 RVA: 0x00013620 File Offset: 0x00011820
1022 {
1023 /*
1024An exception occurred when decompiling this method (060007A5)
1025
1026ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator Newtonsoft.Json.Linq.JContainer/<GetDescendants>d__29::System.Collections.IEnumerable.GetEnumerator()
1027
1028 ---> System.Exception: Basic block has to end with unconditional control flow.
1029{
1030 Block_0:
1031 stloc:class [mscorlib]System.Collections.Generic.IEnumerator`1<class Newtonsoft.Json.Linq.JToken>(var_0_06, call:IEnumerator`1[exp:class [mscorlib]System.Collections.Generic.IEnumerator`1<class Newtonsoft.Json.Linq.JToken>]('<GetDescendants>d__29'::System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JToken>.GetEnumerator, ldloc:'<GetDescendants>d__29'(this)))
1032}
1033
1034 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
1035 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
1036 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
1037 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
1038 --- End of inner exception stack trace ---
1039 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
1040 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
1041*/;
1042 }
1043
1044 // Token: 0x0400031F RID: 799
1045 private int <>1__state;
1046
1047 // Token: 0x04000320 RID: 800
1048 private JToken <>2__current;
1049
1050 // Token: 0x04000321 RID: 801
1052
1053 // Token: 0x04000322 RID: 802
1054 private bool self;
1055
1056 // Token: 0x04000323 RID: 803
1057 public bool <>3__self;
1058
1059 // Token: 0x04000324 RID: 804
1060 public JContainer <>4__this;
1061
1062 // Token: 0x04000325 RID: 805
1063 private JToken <o>5__1;
1064
1065 // Token: 0x04000326 RID: 806
1066 private IEnumerator<JToken> <>7__wrap1;
1067
1068 // Token: 0x04000327 RID: 807
1069 private IEnumerator<JToken> <>7__wrap2;
1070 }
class f__AnonymousType0<< Count > j__TPar
class< GetDescendants > d__29
static Thread CurrentThread
Definition Thread.cs:381