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
AttributeHelperEngine.cs
Go to the documentation of this file.
1using System;
3
4namespace UnityEngine
5{
6 // Token: 0x0200009D RID: 157
7 internal class AttributeHelperEngine
8 {
9 // Token: 0x060002B0 RID: 688 RVA: 0x00005E94 File Offset: 0x00004094
12 {
13 /*
14An exception occurred when decompiling this method (060002B0)
15
16ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Type UnityEngine.AttributeHelperEngine::GetParentTypeDisallowingMultipleInclusion(System.Type)
17
18 ---> System.Exception: Basic block has to end with unconditional control flow.
19{
20 IL_0008:
21 brtrue(IL_0000, call:bool(Attribute::IsDefined, ldloc:Type[exp:MemberInfo](var_2), ldloc:Type(var_2)))
22}
23
24 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
25 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
26 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
27 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
28 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
29 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
30 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
31 --- End of inner exception stack trace ---
32 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
33 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
34*/;
35 }
36
37 // Token: 0x060002B1 RID: 689 RVA: 0x00005EB4 File Offset: 0x000040B4
39 private static Type[] GetRequiredComponents(Type klass)
40 {
41 int num = 1;
42 long num2 = 0L;
43 if (num == 0)
44 {
45 }
46 if (num == 0)
47 {
48 }
49 Type type;
50 if (type != null && type == null)
51 {
52 return type;
53 }
54 if (num2 == 0L)
55 {
56 }
57 while (type != null)
58 {
59 }
60 throw new InvalidCastException();
61 }
62
63 // Token: 0x060002B2 RID: 690 RVA: 0x00005EEC File Offset: 0x000040EC
64 private static int GetExecuteMode(Type klass)
65 {
66 do
67 {
68 if (!true)
69 {
70 }
71 }
72 while (!true);
73 return 2;
74 }
75
76 // Token: 0x060002B3 RID: 691 RVA: 0x00005F00 File Offset: 0x00004100
78 private static int CheckIsEditorScript(Type klass)
79 {
80 if (!true)
81 {
82 }
83 if (!true)
84 {
85 }
86 int num;
87 while (num != 0)
88 {
89 }
90 return num;
91 }
92
93 // Token: 0x060002B4 RID: 692 RVA: 0x00005F1C File Offset: 0x0000411C
95 private static int GetDefaultExecutionOrderFor(Type klass)
96 {
97 /*
98An exception occurred when decompiling this method (060002B4)
99
100ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.AttributeHelperEngine::GetDefaultExecutionOrderFor(System.Type)
101
102 ---> System.Exception: Basic block has to end with unconditional control flow.
103{
104 IL_0003:
105 brtrue(IL_0000, logicnot:bool(ldloc:!!0[exp:bool](var_0)))
106}
107
108 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
109 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
110 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
111 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
112 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
113 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
114 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
115 --- End of inner exception stack trace ---
116 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
117 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
118*/;
119 }
120
121 // Token: 0x060002B5 RID: 693 RVA: 0x00005F30 File Offset: 0x00004130
123 {
124 for (;;)
125 {
126 Type type;
127 if (type != null)
128 {
129 if (!true)
130 {
131 return;
132 }
133 if (klass == null)
134 {
135 break;
136 }
137 }
138 }
139 throw new InvalidCastException();
140 }
141
142 // Token: 0x060002B6 RID: 694 RVA: 0x00005F50 File Offset: 0x00004150
143 // Note: this type is marked as 'beforefieldinit'.
145 {
146 }
147
148 // Token: 0x04000347 RID: 839
150
151 // Token: 0x04000348 RID: 840
153
154 // Token: 0x04000349 RID: 841
156 }
157}
class f__AnonymousType0<< Count > j__TPar
static Type[] GetRequiredComponents(Type klass)
static ExecuteInEditMode[] _executeInEditModeArray
static int GetDefaultExecutionOrderFor(Type klass)
static RequireComponent[] _requireComponentArray
static T GetCustomAttributeOfType< T >(Type klass)
static DisallowMultipleComponent[] _disallowMultipleComponentArray
static Type GetParentTypeDisallowingMultipleInclusion(Type type)