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

◆ IEnumerator

class<GetAttributes> System.Xml.Linq.XElement.IEnumerator
setprivate

Definition at line 354 of file XElement.cs.

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 {
375 XAttribute lastAttr;
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 }
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId
class< GetAttributes > d__116
Definition XElement.cs:354