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
XElement.cs
Go to the documentation of this file.
1using System;
8
9namespace System.Xml.Linq
10{
11 // Token: 0x0200000B RID: 11
12 [XmlTypeConvertor("ConvertForAssignment")]
13 [XmlSchemaProvider(null, IsAny = true)]
14 public class XElement : XContainer
15 {
16 // Token: 0x06000057 RID: 87 RVA: 0x00002CD8 File Offset: 0x00000ED8
18 {
19 do
20 {
21 base..ctor();
22 }
23 while (name == null);
25 }
26
27 // Token: 0x06000058 RID: 88 RVA: 0x00002CF8 File Offset: 0x00000EF8
29 : base(other)
30 {
31 XName xname = other.name;
33 XAttribute xattribute = other.lastAttr;
34 if (xattribute != null)
35 {
38 if (xattribute2 != null)
39 {
41 return;
42 }
43 XAttribute xattribute3 = other.lastAttr;
44 }
45 }
46
47 // Token: 0x06000059 RID: 89 RVA: 0x00002D48 File Offset: 0x00000F48
49 {
50 do
51 {
52 base..ctor();
53 }
54 while (other == null);
55 XName xname = other.name;
57 object content = other.content;
58 base.AddContentSkipNotify(content);
59 }
60
61 // Token: 0x17000016 RID: 22
62 // (get) Token: 0x0600005A RID: 90 RVA: 0x00002D7C File Offset: 0x00000F7C
63 public bool IsEmpty
64 {
65 get
66 {
67 /*
68An exception occurred when decompiling this method (0600005A)
69
70ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.Linq.XElement::get_IsEmpty()
71
72 ---> System.Exception: Basic block has to end with unconditional control flow.
73{
74 Block_0:
75 stloc:object(var_0_06, ldfld:object(XContainer::content, ldloc:XElement[exp:XContainer](this)))
76}
77
78 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
79 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
80 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
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 88
82 --- End of inner exception stack trace ---
83 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
84 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
85*/;
86 }
87 }
88
89 // Token: 0x17000017 RID: 23
90 // (get) Token: 0x0600005B RID: 91 RVA: 0x00002D90 File Offset: 0x00000F90
91 public XName Name
92 {
93 get
94 {
95 return this.name;
96 }
97 }
98
99 // Token: 0x17000018 RID: 24
100 // (get) Token: 0x0600005C RID: 92 RVA: 0x00002DA4 File Offset: 0x00000FA4
101 public override XmlNodeType NodeType
102 {
103 get
104 {
105 return XmlNodeType.Element;
106 }
107 }
108
109 // Token: 0x17000019 RID: 25
110 // (get) Token: 0x0600005D RID: 93 RVA: 0x00002DB4 File Offset: 0x00000FB4
111 // (set) Token: 0x0600005E RID: 94 RVA: 0x00002DD4 File Offset: 0x00000FD4
112 public string Value
113 {
114 get
115 {
116 /*
117An exception occurred when decompiling this method (0600005D)
118
119ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Xml.Linq.XElement::get_Value()
120
121 ---> System.Exception: Basic block has to end with unconditional control flow.
122{
123 Block_0:
124 call:void(StringBuilderCache::Release, call:StringBuilder(StringBuilderCache::Acquire, ldc.i4:int32(16)))
125}
126
127 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
128 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
129 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
130 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
131 --- End of inner exception stack trace ---
132 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
133 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
134*/;
135 }
136 set
137 {
138 while (value == null)
139 {
140 }
141 base.RemoveNodes();
142 base.Add(value);
143 }
144 }
145
146 // Token: 0x0600005F RID: 95 RVA: 0x00002DF4 File Offset: 0x00000FF4
148 {
150 if (xattribute != null)
151 {
152 XName xname = xattribute.next.name;
153 return;
154 }
155 }
156
157 // Token: 0x06000060 RID: 96 RVA: 0x00002E18 File Offset: 0x00001018
159 {
160 IEnumerable<XAttribute> enumerable;
161 return enumerable;
162 }
163
164 // Token: 0x06000061 RID: 97 RVA: 0x00002E28 File Offset: 0x00001028
166 {
167 while (ns == null)
168 {
169 }
170 string namespaceName = ns._namespaceName;
173 if (xattribute != null)
174 {
176 bool isNamespaceDeclaration = next.IsNamespaceDeclaration;
177 bool flag = next.value == namespaceName;
178 XName xname = next.name;
179 if (xname._ns._namespaceName._stringLength != 0)
180 {
181 string localName = xname._localName;
183 if (namespaceOfPrefixInScope == null)
184 {
185 return next.name._localName;
186 }
187 }
189 }
190 if (this.parent != null)
191 {
192 while (this != null)
193 {
194 }
195 }
197 }
198
199 // Token: 0x06000062 RID: 98 RVA: 0x00002EC4 File Offset: 0x000010C4
200 public override void WriteTo(XmlWriter writer)
201 {
202 while (writer == null)
203 {
204 }
205 }
206
207 // Token: 0x06000063 RID: 99 RVA: 0x00002ED4 File Offset: 0x000010D4
208 internal override void AddAttribute(XAttribute a)
209 {
211 if (xattribute != null)
212 {
213 XName xname = a.name;
215 XName xname2 = next.name;
216 return;
217 }
218 if (a.parent != null)
219 {
220 }
221 }
222
223 // Token: 0x06000064 RID: 100 RVA: 0x00002F0C File Offset: 0x0000110C
224 internal override void AddAttributeSkipNotify(XAttribute a)
225 {
227 if (xattribute != null)
228 {
229 XName xname = a.name;
231 XName xname2 = next.name;
232 return;
233 }
235 if (a.parent != null)
236 {
237 xattribute2 = this.lastAttr;
238 }
239 if (xattribute2 != null)
240 {
242 return;
243 }
244 }
245
246 // Token: 0x06000065 RID: 101 RVA: 0x00002F5C File Offset: 0x0000115C
248 {
249 int num;
250 do
251 {
252 num = 1;
253 if (num == 0)
254 {
255 }
256 }
257 while (a.parent != null);
258 a.parent = this;
260 if (xattribute != null)
261 {
263 a.next = next;
264 return;
265 }
266 this.lastAttr = a;
267 if (num != 0)
268 {
269 if (num == 0)
270 {
271 }
272 return;
273 }
274 }
275
276 // Token: 0x06000066 RID: 102 RVA: 0x00002FA4 File Offset: 0x000011A4
278 {
279 a.parent = this;
281 if (xattribute != null)
282 {
284 a.next = next;
285 return;
286 }
287 this.lastAttr = a;
288 }
289
290 // Token: 0x06000067 RID: 103 RVA: 0x00002367 File Offset: 0x00000567
291 internal override XNode CloneNode()
292 {
293 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
294 }
295
296 // Token: 0x06000068 RID: 104 RVA: 0x00002FD8 File Offset: 0x000011D8
298 {
299 /*
300An exception occurred when decompiling this method (06000068)
301
302ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<System.Xml.Linq.XAttribute> System.Xml.Linq.XElement::GetAttributes(System.Xml.Linq.XName)
303
304 ---> System.Exception: Basic block has to end with unconditional control flow.
305{
306 Block_0:
307 stloc:int32(var_1_07, callgetter:int32(Environment::get_CurrentManagedThreadId))
308}
309
310 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
311 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
312 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
313 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
314 --- End of inner exception stack trace ---
315 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
316 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
317*/;
318 }
319
320 // Token: 0x06000069 RID: 105 RVA: 0x00002FEC File Offset: 0x000011EC
321 private string GetNamespaceOfPrefixInScope(string prefix, XElement outOfScope)
322 {
325 if (xattribute != null)
326 {
328 bool isNamespaceDeclaration = next.IsNamespaceDeclaration;
329 bool flag = next.name._localName == prefix;
331 }
332 if (this.parent != null)
333 {
334 }
335 return next.value;
336 }
337
338 // Token: 0x0600006A RID: 106 RVA: 0x00003040 File Offset: 0x00001240
339 internal override void ValidateNode(XNode node, XNode previous)
340 {
341 if (node != null)
342 {
343 }
344 }
345
346 // Token: 0x04000013 RID: 19
347 internal XName name;
348
349 // Token: 0x04000014 RID: 20
351
352 // Token: 0x0200000C RID: 12
355 {
356 // Token: 0x0600006B RID: 107 RVA: 0x00003054 File Offset: 0x00001254
359 {
360 this.<>1__state = <>1__state;
362 this.<>l__initialThreadId = currentManagedThreadId;
363 }
364
365 // Token: 0x0600006C RID: 108 RVA: 0x00003080 File Offset: 0x00001280
367 void IDisposable.Dispose()
368 {
369 }
370
371 // Token: 0x0600006D RID: 109 RVA: 0x00003090 File Offset: 0x00001290
372 private bool MoveNext()
373 {
376 do
377 {
378 int num = this.<>1__state;
379 xelement = this.<>4__this;
380 if (num != 0)
381 {
382 goto IL_0060;
383 }
384 this.<>1__state = num;
385 lastAttr = xelement.lastAttr;
386 this.<a>5__2 = lastAttr;
387 }
388 while (lastAttr != null);
389 XAttribute next = this.<a>5__2.next;
390 XName xname = this.name;
391 this.<a>5__2 = next;
392 if (xname != null)
393 {
394 XName xname2 = next.name;
396 XAttribute lastAttr2 = xelement.lastAttr;
397 }
398 IL_0060:
399 this.<>2__current = next;
400 this.<>1__state = 1;
401 return true;
402 }
403
404 // Token: 0x1700001A RID: 26
405 // (get) Token: 0x0600006E RID: 110 RVA: 0x0000310C File Offset: 0x0000130C
407 {
409 get
410 {
411 return this.<>2__current;
412 }
413 }
414
415 // Token: 0x0600006F RID: 111 RVA: 0x00002367 File Offset: 0x00000567
417 void IEnumerator.Reset()
418 {
419 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
420 }
421
422 // Token: 0x1700001B RID: 27
423 // (get) Token: 0x06000070 RID: 112 RVA: 0x00003120 File Offset: 0x00001320
425 {
427 get
428 {
429 /*
430An exception occurred when decompiling this method (06000070)
431
432ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Xml.Linq.XElement/<GetAttributes>d__116::System.Collections.IEnumerator.get_Current()
433
434 ---> System.Exception: Basic block has to end with unconditional control flow.
435{
436 Block_0:
437 stloc:XAttribute(var_0_06, ldfld:XAttribute('<GetAttributes>d__116'::<>2__current, ldloc:'<GetAttributes>d__116'(this)))
438}
439
440 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
441 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
442 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
443 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
444 --- End of inner exception stack trace ---
445 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
446 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
447*/;
448 }
449 }
450
451 // Token: 0x06000071 RID: 113 RVA: 0x00003134 File Offset: 0x00001334
454 {
455 /*
456An exception occurred when decompiling this method (06000071)
457
458ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<System.Xml.Linq.XAttribute> System.Xml.Linq.XElement/<GetAttributes>d__116::System.Collections.Generic.IEnumerable<System.Xml.Linq.XAttribute>.GetEnumerator()
459
460 ---> System.Exception: Basic block has to end with unconditional control flow.
461{
462 Block_0:
463 stloc:int32(var_0_06, ldfld:int32('<GetAttributes>d__116'::<>1__state, ldloc:'<GetAttributes>d__116'(this)))
464 stloc:int32(var_1_0D, ldfld:int32('<GetAttributes>d__116'::<>l__initialThreadId, ldloc:'<GetAttributes>d__116'(this)))
465 stloc:int32(var_3_15, callgetter:int32(Environment::get_CurrentManagedThreadId))
466 stloc:int32(var_5_1E, callgetter:int32(Environment::get_CurrentManagedThreadId))
467 stloc:XElement(var_6_26, ldfld:XElement('<GetAttributes>d__116'::<>4__this, ldloc:'<GetAttributes>d__116'(this)))
468 stloc:XName(var_7_2E, ldfld:XName('<GetAttributes>d__116'::<>3__name, ldloc:'<GetAttributes>d__116'(this)))
469}
470
471 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
472 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
473 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
474 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
475 --- End of inner exception stack trace ---
476 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
477 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
478*/;
479 }
480
481 // Token: 0x06000072 RID: 114 RVA: 0x00003170 File Offset: 0x00001370
484 {
485 /*
486An exception occurred when decompiling this method (06000072)
487
488ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator System.Xml.Linq.XElement/<GetAttributes>d__116::System.Collections.IEnumerable.GetEnumerator()
489
490 ---> System.Exception: Basic block has to end with unconditional control flow.
491{
492 Block_0:
493 stloc:class [mscorlib]System.Collections.Generic.IEnumerator`1<class System.Xml.Linq.XAttribute>(var_0_06, call:IEnumerator`1[exp:class [mscorlib]System.Collections.Generic.IEnumerator`1<class System.Xml.Linq.XAttribute>]('<GetAttributes>d__116'::System.Collections.Generic.IEnumerable<System.Xml.Linq.XAttribute>.GetEnumerator, ldloc:'<GetAttributes>d__116'(this)))
494}
495
496 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
497 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
498 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
499 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
500 --- End of inner exception stack trace ---
501 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
502 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
503*/;
504 }
505
506 // Token: 0x04000015 RID: 21
507 private int <>1__state;
508
509 // Token: 0x04000016 RID: 22
510 private XAttribute <>2__current;
511
512 // Token: 0x04000017 RID: 23
513 private int <>l__initialThreadId;
514
515 // Token: 0x04000018 RID: 24
516 public XElement <>4__this;
517
518 // Token: 0x04000019 RID: 25
519 private XName name;
520
521 // Token: 0x0400001A RID: 26
522 public XName <>3__name;
523
524 // Token: 0x0400001B RID: 27
525 private XAttribute <a>5__2;
526 }
527 }
528}
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId
IEnumerable< XAttribute > Attributes()
Definition XElement.cs:158
override void AddAttributeSkipNotify(XAttribute a)
Definition XElement.cs:224
XAttribute Attribute(XName name)
Definition XElement.cs:147
override void ValidateNode(XNode node, XNode previous)
Definition XElement.cs:339
class< GetAttributes > IDisposable
Definition XElement.cs:354
override void AddAttribute(XAttribute a)
Definition XElement.cs:208
void AppendAttribute(XAttribute a)
Definition XElement.cs:247
override XmlNodeType NodeType
Definition XElement.cs:102
string GetNamespaceOfPrefixInScope(string prefix, XElement outOfScope)
Definition XElement.cs:321
XElement(XStreamingElement other)
Definition XElement.cs:48
class< GetAttributes > IEnumerable
Definition XElement.cs:354
XElement(XElement other)
Definition XElement.cs:28
IEnumerable< XAttribute > GetAttributes(XName name)
Definition XElement.cs:297
void AppendAttributeSkipNotify(XAttribute a)
Definition XElement.cs:277
override XNode CloneNode()
Definition XElement.cs:291
override void WriteTo(XmlWriter writer)
Definition XElement.cs:200
class< GetAttributes > d__116
Definition XElement.cs:354
string GetPrefixOfNamespace(XNamespace ns)
Definition XElement.cs:165