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
PasteArguments.cs
Go to the documentation of this file.
1using System;
2using System.Text;
3
4namespace System
5{
6 // Token: 0x0200007D RID: 125
7 internal static class PasteArguments
8 {
9 // Token: 0x060001DF RID: 479 RVA: 0x000063F4 File Offset: 0x000045F4
10 internal static void AppendArgument(StringBuilder stringBuilder, string argument)
11 {
12 if (stringBuilder.Length != 0)
13 {
14 int num = 32;
15 StringBuilder stringBuilder2 = stringBuilder.Append((char)num);
16 }
17 if (argument._stringLength != 0)
18 {
19 bool flag = global::System.PasteArguments.ContainsNoWhitespaceOrQuotes(argument);
20 StringBuilder stringBuilder3 = stringBuilder.Append(argument);
21 return;
22 }
23 int num2 = 34;
24 StringBuilder stringBuilder4 = stringBuilder.Append((char)num2);
25 int stringLength = argument._stringLength;
26 long num3 = 0L;
27 char c = argument[(int)num3];
28 int stringLength2 = argument._stringLength;
29 char c2 = argument[(int)num3];
30 int stringLength3 = argument._stringLength;
31 }
32
33 // Token: 0x060001E0 RID: 480 RVA: 0x000064F0 File Offset: 0x000046F0
34 private static bool ContainsNoWhitespaceOrQuotes(string s)
35 {
36 /*
37An exception occurred when decompiling this method (060001E0)
38
39ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.PasteArguments::ContainsNoWhitespaceOrQuotes(System.String)
40
41 ---> System.Exception: Basic block has to end with unconditional control flow.
42{
43 Block_0:
44 stloc:bool(var_3_0A, call:bool(char::IsWhiteSpace, ldloc:char(var_2)))
45}
46
47 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
48 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
49 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
50 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
51 --- End of inner exception stack trace ---
52 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
53 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
54*/;
55 }
56 }
57}
class f__AnonymousType0<< Count > j__TPar
static void AppendArgument(StringBuilder stringBuilder, string argument)
static bool ContainsNoWhitespaceOrQuotes(string s)
StringBuilder Append(char value, int repeatCount)