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

◆ GetReference()

string Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetReference ( JsonWriter writer,
object value )
inlineprivate

Definition at line 266 of file JsonSerializerInternalWriter.cs.

267 {
268 /*
269An exception occurred when decompiling this method (0600064A)
270
271ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Newtonsoft.Json.Serialization.JsonSerializerInternalWriter::GetReference(Newtonsoft.Json.JsonWriter,System.Object)
272
273 ---> System.Exception: Basic block has to end with unconditional control flow.
274{
275 Block_0:
276 stloc:IReferenceResolver(var_0_0B, call:IReferenceResolver(JsonSerializer::GetReferenceResolver, ldfld:JsonSerializer(JsonSerializerInternalBase::Serializer, ldloc:JsonSerializerInternalWriter[exp:JsonSerializerInternalBase](this))))
277 stloc:string(var_1_12, callgetter:string(JsonWriter::get_ContainerPath, ldloc:JsonWriter(writer)))
278 stloc:CultureInfo(var_3_1A, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
279 stloc:Type(var_4_21, call:Type(object::GetType, ldloc:object(value)))
280 stloc:string(var_5_30, call:string(StringUtils::FormatWith, ldstr:string("Error writing object reference for '{0}'."), ldloc:CultureInfo[exp:IFormatProvider](var_3_1A), ldloc:Type[exp:object](var_4_21)))
281}
282
283 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
284 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
285 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
286 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
287 --- End of inner exception stack trace ---
288 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
289 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
290*/;
291 }

Referenced by Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteReference(), and Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteReferenceIdProperty().