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
StackTraceUtility.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine
7{
8 // Token: 0x020000AC RID: 172
9 public static class StackTraceUtility
10 {
11 // Token: 0x06000315 RID: 789 RVA: 0x00006758 File Offset: 0x00004958
13 internal static void SetProjectFolder(string folder)
14 {
15 if (!true)
16 {
17 }
18 }
19
20 // Token: 0x06000316 RID: 790 RVA: 0x00006768 File Offset: 0x00004968
22 public static string ExtractStackTrace()
23 {
24 if (!true)
25 {
26 }
27 throw new MissingMethodException();
28 }
29
30 // Token: 0x06000317 RID: 791 RVA: 0x00006794 File Offset: 0x00004994
32 internal static void ExtractStringFromExceptionInternal(object exceptiono, [Out] string message, [Out] string stackTrace)
33 {
34 while (exceptiono == null)
35 {
36 }
37 if (exceptiono != null)
38 {
39 return;
40 }
41 if (exceptiono != null)
42 {
43 }
44 string text;
45 int stringLength = text._stringLength;
46 if (stringLength != 0)
47 {
48 }
49 string text4;
50 if (stringLength != 0)
51 {
52 string text3;
53 string text2 = "Rethrow as " + text3 + "\n" + text4;
54 while (exceptiono != null)
55 {
56 }
57 return;
58 }
59 string text5 = text4 + "\n";
60 }
61
62 // Token: 0x06000318 RID: 792 RVA: 0x000067F0 File Offset: 0x000049F0
63 internal static string ExtractFormattedStackTrace(StackTrace stackTrace)
64 {
65 /*
66An exception occurred when decompiling this method (06000318)
67
68ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String UnityEngine.StackTraceUtility::ExtractFormattedStackTrace(System.Diagnostics.StackTrace)
69
70 ---> System.Exception: Basic block has to end with unconditional control flow.
71{
72 IL_0012:
73 stloc:bool(var_25_1C, call:bool(string::IsNullOrEmpty, ldstr:string(" (at ")))
74}
75
76 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
77 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
78 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
79 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
80 --- End of inner exception stack trace ---
81 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
82 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
83*/;
84 }
85
86 // Token: 0x06000319 RID: 793 RVA: 0x00006820 File Offset: 0x00004A20
87 // Note: this type is marked as 'beforefieldinit'.
89 {
90 }
91
92 // Token: 0x04000369 RID: 873
93 private static string projectFolder;
94 }
95}
class f__AnonymousType0<< Count > j__TPar
static void ExtractStringFromExceptionInternal(object exceptiono, [Out] string message, [Out] string stackTrace)
static void SetProjectFolder(string folder)
static string ExtractFormattedStackTrace(StackTrace stackTrace)