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
TextGenerator.cs
Go to the documentation of this file.
1using System;
7
8namespace UnityEngine
9{
10 // Token: 0x02000005 RID: 5
12 [NativeHeader("Modules/TextRendering/TextGenerator.h")]
13 [StructLayout(0)]
14 public sealed class TextGenerator : IDisposable
15 {
16 // Token: 0x06000004 RID: 4 RVA: 0x00002220 File Offset: 0x00000420
18 {
19 }
20
21 // Token: 0x06000005 RID: 5 RVA: 0x00002230 File Offset: 0x00000430
23 {
24 throw new MissingMethodException();
25 }
26
27 // Token: 0x06000006 RID: 6 RVA: 0x0000224C File Offset: 0x0000044C
28 protected override void Finalize()
29 {
30 }
31
32 // Token: 0x06000007 RID: 7 RVA: 0x00002284 File Offset: 0x00000484
34 {
35 IntPtr ptr = this.m_Ptr;
36 IntPtr ptr2 = this.m_Ptr;
37 throw new MissingMethodException();
38 }
39
40 // Token: 0x17000001 RID: 1
41 // (get) Token: 0x06000008 RID: 8 RVA: 0x000022A8 File Offset: 0x000004A8
43 {
44 get
45 {
46 throw new MissingMethodException();
47 }
48 }
49
50 // Token: 0x06000009 RID: 9 RVA: 0x000022BC File Offset: 0x000004BC
52 {
53 if (!true)
54 {
55 }
56 throw new MissingMethodException();
57 }
58
59 // Token: 0x0600000A RID: 10 RVA: 0x0000230C File Offset: 0x0000050C
60 public void Invalidate()
61 {
62 }
63
64 // Token: 0x0600000B RID: 11 RVA: 0x0000231C File Offset: 0x0000051C
66 {
67 throw new MissingMethodException();
68 }
69
70 // Token: 0x0600000C RID: 12 RVA: 0x00002330 File Offset: 0x00000530
72 {
73 throw new MissingMethodException();
74 }
75
76 // Token: 0x0600000D RID: 13 RVA: 0x00002344 File Offset: 0x00000544
77 public void GetVertices(List<UIVertex> vertices)
78 {
79 throw new MissingMethodException();
80 }
81
82 // Token: 0x0600000E RID: 14 RVA: 0x00002358 File Offset: 0x00000558
83 public float GetPreferredWidth(string str, TextGenerationSettings settings)
84 {
85 /*
86An exception occurred when decompiling this method (0600000E)
87
88ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.TextGenerator::GetPreferredWidth(System.String,UnityEngine.TextGenerationSettings)
89
90 ---> System.Exception: Basic block has to end with unconditional control flow.
91{
92 Block_0:
93 stfld:bool(TextGenerationSettings::updateBounds, ldloc:TextGenerationSettings[exp:valuetype UnityEngine.TextGenerationSettings&](settings), ldc.i4:bool(1))
94 stloc:float32(var_1_12, callgetter:float32(Rect::get_width, callgetter:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](TextGenerator::get_rectExtents, ldloc:TextGenerator(this))))
95}
96
97 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
98 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
99 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
100 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
101 --- End of inner exception stack trace ---
102 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
103 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
104*/;
105 }
106
107 // Token: 0x0600000F RID: 15 RVA: 0x00002378 File Offset: 0x00000578
108 public float GetPreferredHeight(string str, TextGenerationSettings settings)
109 {
110 /*
111An exception occurred when decompiling this method (0600000F)
112
113ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.TextGenerator::GetPreferredHeight(System.String,UnityEngine.TextGenerationSettings)
114
115 ---> System.Exception: Basic block has to end with unconditional control flow.
116{
117 Block_0:
118 stfld:VerticalWrapMode(TextGenerationSettings::verticalOverflow, ldloc:TextGenerationSettings[exp:valuetype UnityEngine.TextGenerationSettings&](settings), ldc.i4:VerticalWrapMode(1))
119 stfld:bool(TextGenerationSettings::updateBounds, ldloc:TextGenerationSettings[exp:valuetype UnityEngine.TextGenerationSettings&](settings), ldc.i4:bool(1))
120 stloc:float32(var_1_19, callgetter:float32(Rect::get_height, callgetter:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](TextGenerator::get_rectExtents, ldloc:TextGenerator(this))))
121}
122
123 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
124 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
125 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
126 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
127 --- End of inner exception stack trace ---
128 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
129 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
130*/;
131 }
132
133 // Token: 0x06000010 RID: 16 RVA: 0x000023A0 File Offset: 0x000005A0
134 public bool PopulateWithErrors(string str, TextGenerationSettings settings, GameObject context)
135 {
138 {
139 }
140 return true;
141 }
142
143 // Token: 0x06000011 RID: 17 RVA: 0x000023B9 File Offset: 0x000005B9
144 public bool Populate(string str, TextGenerationSettings settings)
145 {
146 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
147 }
148
149 // Token: 0x06000012 RID: 18 RVA: 0x000023C8 File Offset: 0x000005C8
151 {
152 if (this.m_HasGenerated)
153 {
154 string lastString = this.m_LastString;
155 bool flag = str == lastString;
156 return this.m_LastValid;
157 }
160 return textGenerationError;
161 }
162
163 // Token: 0x06000013 RID: 19 RVA: 0x000023FC File Offset: 0x000005FC
165 {
166 /*
167An exception occurred when decompiling this method (06000013)
168
169ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.TextGenerationError UnityEngine.TextGenerator::PopulateAlways(System.String,UnityEngine.TextGenerationSettings)
170
171 ---> System.Exception: Basic block has to end with unconditional control flow.
172{
173 Block_0:
174 stloc:int32(var_0_01, ldc.i4:int32(1))
175 stfld:string(TextGenerator::m_LastString, ldloc:TextGenerator(this), ldloc:string(str))
176 stfld:bool(TextGenerator::m_HasGenerated, ldloc:TextGenerator(this), ldloc:int32[exp:bool](var_0_01))
177 stloc:TextGenerationSettings(var_1_17, call:TextGenerationSettings(TextGenerator::ValidatedSettings, ldloc:TextGenerator(this), ldloc:TextGenerationSettings(settings)))
178 stfld:TextGenerationError(TextGenerator::m_LastValid, ldloc:TextGenerator(this), ldloc:bool[exp:TextGenerationError](var_2))
179}
180
181 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
182 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
183 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
184 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
185 --- End of inner exception stack trace ---
186 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
187 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
188*/;
189 }
190
191 // Token: 0x17000002 RID: 2
192 // (get) Token: 0x06000014 RID: 20 RVA: 0x00002428 File Offset: 0x00000628
194 {
195 get
196 {
197 /*
198An exception occurred when decompiling this method (06000014)
199
200ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IList`1<UnityEngine.UIVertex> UnityEngine.TextGenerator::get_verts()
201
202 ---> System.Exception: Basic block has to end with unconditional control flow.
203{
204 IL_001E:
205 stloc:class [mscorlib]System.Collections.Generic.List`1<valuetype UnityEngine.UIVertex>(var_2_24, ldfld:class [mscorlib]System.Collections.Generic.List`1<valuetype UnityEngine.UIVertex>(TextGenerator::m_Verts, ldloc:TextGenerator(this)))
206}
207
208 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
209 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
210 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
211 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
212 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
213 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
214 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
215 --- End of inner exception stack trace ---
216 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
217 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
218*/;
219 }
220 }
221
222 // Token: 0x17000003 RID: 3
223 // (get) Token: 0x06000015 RID: 21 RVA: 0x0000245C File Offset: 0x0000065C
225 {
226 get
227 {
228 /*
229An exception occurred when decompiling this method (06000015)
230
231ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IList`1<UnityEngine.UICharInfo> UnityEngine.TextGenerator::get_characters()
232
233 ---> System.Exception: Basic block has to end with unconditional control flow.
234{
235 IL_001E:
236 stloc:class [mscorlib]System.Collections.Generic.List`1<valuetype UnityEngine.UICharInfo>(var_2_24, ldfld:class [mscorlib]System.Collections.Generic.List`1<valuetype UnityEngine.UICharInfo>(TextGenerator::m_Characters, ldloc:TextGenerator(this)))
237}
238
239 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
240 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
241 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
242 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
243 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
244 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
245 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
246 --- End of inner exception stack trace ---
247 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
248 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
249*/;
250 }
251 }
252
253 // Token: 0x17000004 RID: 4
254 // (get) Token: 0x06000016 RID: 22 RVA: 0x00002490 File Offset: 0x00000690
256 {
257 get
258 {
259 /*
260An exception occurred when decompiling this method (06000016)
261
262ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IList`1<UnityEngine.UILineInfo> UnityEngine.TextGenerator::get_lines()
263
264 ---> System.Exception: Basic block has to end with unconditional control flow.
265{
266 IL_001E:
267 stloc:class [mscorlib]System.Collections.Generic.List`1<valuetype UnityEngine.UILineInfo>(var_2_24, ldfld:class [mscorlib]System.Collections.Generic.List`1<valuetype UnityEngine.UILineInfo>(TextGenerator::m_Lines, ldloc:TextGenerator(this)))
268}
269
270 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
271 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
272 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
273 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
274 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
275 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
276 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
277 --- End of inner exception stack trace ---
278 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
279 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
280*/;
281 }
282 }
283
284 // Token: 0x17000005 RID: 5
285 // (get) Token: 0x06000017 RID: 23 RVA: 0x000024C4 File Offset: 0x000006C4
287 {
288 get
289 {
290 throw new MissingMethodException();
291 }
292 }
293
294 // Token: 0x17000006 RID: 6
295 // (get) Token: 0x06000018 RID: 24 RVA: 0x000024D8 File Offset: 0x000006D8
296 public int characterCount
297 {
298 get
299 {
300 throw new MissingMethodException();
301 }
302 }
303
304 // Token: 0x17000007 RID: 7
305 // (get) Token: 0x06000019 RID: 25 RVA: 0x000024EC File Offset: 0x000006EC
306 public int lineCount
307 {
308 get
309 {
310 throw new MissingMethodException();
311 }
312 }
313
314 // Token: 0x0600001A RID: 26 RVA: 0x00002500 File Offset: 0x00000700
315 [NativeMethod(IsThreadSafe = true)]
316 private static IntPtr Internal_Create()
317 {
318 throw new MissingMethodException();
319 }
320
321 // Token: 0x0600001B RID: 27 RVA: 0x00002514 File Offset: 0x00000714
322 [NativeMethod(IsThreadSafe = true)]
323 private static void Internal_Destroy(IntPtr ptr)
324 {
325 throw new MissingMethodException();
326 }
327
328 // Token: 0x0600001C RID: 28 RVA: 0x00002528 File Offset: 0x00000728
329 internal bool Populate_Internal(string str, Font font, Color color, int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, int verticalOverFlow, int horizontalOverflow, bool updateBounds, TextAnchor anchor, float extentsX, float extentsY, float pivotX, float pivotY, bool generateOutOfBounds, bool alignByGeometry, [Out] uint error)
330 {
331 throw new MissingMethodException();
332 }
333
334 // Token: 0x0600001D RID: 29 RVA: 0x0000253C File Offset: 0x0000073C
335 internal bool Populate_Internal(string str, Font font, Color color, int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, VerticalWrapMode verticalOverFlow, HorizontalWrapMode horizontalOverflow, bool updateBounds, TextAnchor anchor, Vector2 extents, Vector2 pivot, bool generateOutOfBounds, bool alignByGeometry, [Out] TextGenerationError error)
336 {
337 if (!true)
338 {
339 }
340 bool flag;
341 return flag;
342 }
343
344 // Token: 0x0600001E RID: 30 RVA: 0x00002550 File Offset: 0x00000750
346 private void GetVerticesInternal(object vertices)
347 {
348 throw new MissingMethodException();
349 }
350
351 // Token: 0x0600001F RID: 31 RVA: 0x00002564 File Offset: 0x00000764
354 {
355 throw new MissingMethodException();
356 }
357
358 // Token: 0x06000020 RID: 32 RVA: 0x00002578 File Offset: 0x00000778
360 private void GetLinesInternal(object lines)
361 {
362 throw new MissingMethodException();
363 }
364
365 // Token: 0x06000021 RID: 33 RVA: 0x0000258C File Offset: 0x0000078C
366 private void get_rectExtents_Injected([Out] Rect ret)
367 {
368 throw new MissingMethodException();
369 }
370
371 // Token: 0x06000022 RID: 34 RVA: 0x000025A0 File Offset: 0x000007A0
372 private bool Populate_Internal_Injected(string str, Font font, Color color, int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, int verticalOverFlow, int horizontalOverflow, bool updateBounds, TextAnchor anchor, float extentsX, float extentsY, float pivotX, float pivotY, bool generateOutOfBounds, bool alignByGeometry, [Out] uint error)
373 {
374 throw new MissingMethodException();
375 }
376
377 // Token: 0x0400001D RID: 29
378 internal IntPtr m_Ptr;
379
380 // Token: 0x0400001E RID: 30
381 private string m_LastString;
382
383 // Token: 0x0400001F RID: 31
385
386 // Token: 0x04000020 RID: 32
387 private bool m_HasGenerated;
388
389 // Token: 0x04000021 RID: 33
391
392 // Token: 0x04000022 RID: 34
394
395 // Token: 0x04000023 RID: 35
397
398 // Token: 0x04000024 RID: 36
400
401 // Token: 0x04000025 RID: 37
402 private bool m_CachedVerts;
403
404 // Token: 0x04000026 RID: 38
405 private bool m_CachedCharacters;
406
407 // Token: 0x04000027 RID: 39
408 private bool m_CachedLines;
409 }
410}
class f__AnonymousType0<< Count > j__TPar
TextGenerationSettings ValidatedSettings(TextGenerationSettings settings)
bool Populate_Internal(string str, Font font, Color color, int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, VerticalWrapMode verticalOverFlow, HorizontalWrapMode horizontalOverflow, bool updateBounds, TextAnchor anchor, Vector2 extents, Vector2 pivot, bool generateOutOfBounds, bool alignByGeometry, [Out] TextGenerationError error)
void GetLines(List< UILineInfo > lines)
readonly List< UIVertex > m_Verts
void GetCharacters(List< UICharInfo > characters)
IList< UIVertex > verts
float GetPreferredHeight(string str, TextGenerationSettings settings)
IList< UILineInfo > lines
bool Populate_Internal_Injected(string str, Font font, Color color, int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, int verticalOverFlow, int horizontalOverflow, bool updateBounds, TextAnchor anchor, float extentsX, float extentsY, float pivotX, float pivotY, bool generateOutOfBounds, bool alignByGeometry, [Out] uint error)
TextGenerator(int initialCapacity)
static void Internal_Destroy(IntPtr ptr)
void GetVertices(List< UIVertex > vertices)
TextGenerationError PopulateWithError(string str, TextGenerationSettings settings)
TextGenerationError PopulateAlways(string str, TextGenerationSettings settings)
void GetCharactersInternal(object characters)
void get_rectExtents_Injected([Out] Rect ret)
readonly List< UICharInfo > m_Characters
readonly List< UILineInfo > m_Lines
bool PopulateWithErrors(string str, TextGenerationSettings settings, GameObject context)
static IntPtr Internal_Create()
TextGenerationSettings m_LastSettings
bool Populate(string str, TextGenerationSettings settings)
void GetLinesInternal(object lines)
float GetPreferredWidth(string str, TextGenerationSettings settings)
IList< UICharInfo > characters
TextGenerationError m_LastValid
void GetVerticesInternal(object vertices)
bool Populate_Internal(string str, Font font, Color color, int fontSize, float scaleFactor, float lineSpacing, FontStyle style, bool richText, bool resizeTextForBestFit, int resizeTextMinSize, int resizeTextMaxSize, int verticalOverFlow, int horizontalOverflow, bool updateBounds, TextAnchor anchor, float extentsX, float extentsY, float pivotX, float pivotY, bool generateOutOfBounds, bool alignByGeometry, [Out] uint error)