Code reformatting

This commit is contained in:
Robert Xiao
2020-04-13 06:54:53 -07:00
committed by Katy
parent 4207464208
commit 5354d39181

View File

@@ -12,7 +12,8 @@ using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text; using System.Text;
namespace Il2CppInspector.Reflection { namespace Il2CppInspector.Reflection
{
public class TypeInfo : MemberInfo public class TypeInfo : MemberInfo
{ {
// IL2CPP-specific data // IL2CPP-specific data
@@ -811,8 +812,7 @@ namespace Il2CppInspector.Reflection {
if (pairedEip.FirstOrDefault(pe => pe.get == null && pe.set.Name == p.Name.Replace(".get_", ".set_")) is (MethodInfo get, MethodInfo set) method) { if (pairedEip.FirstOrDefault(pe => pe.get == null && pe.set.Name == p.Name.Replace(".get_", ".set_")) is (MethodInfo get, MethodInfo set) method) {
pairedEip.Remove(method); pairedEip.Remove(method);
pairedEip.Add((p, method.set)); pairedEip.Add((p, method.set));
} } else
else
pairedEip.Add((p, null)); pairedEip.Add((p, null));
// Find getter with no matching setter // Find getter with no matching setter
@@ -820,8 +820,7 @@ namespace Il2CppInspector.Reflection {
if (pairedEip.FirstOrDefault(pe => pe.set == null && pe.get.Name == p.Name.Replace(".set_", ".get_")) is (MethodInfo get, MethodInfo set) method) { if (pairedEip.FirstOrDefault(pe => pe.set == null && pe.get.Name == p.Name.Replace(".set_", ".get_")) is (MethodInfo get, MethodInfo set) method) {
pairedEip.Remove(method); pairedEip.Remove(method);
pairedEip.Add((method.get, p)); pairedEip.Add((method.get, p));
} } else
else
pairedEip.Add((null, p)); pairedEip.Add((null, p));
} }
@@ -1074,7 +1073,8 @@ namespace Il2CppInspector.Reflection {
return refList.ToList(); return refList.ToList();
} }
public string GetAccessModifierString() => this switch { public string GetAccessModifierString() => this switch
{
{ IsPublic: true } => "public ", { IsPublic: true } => "public ",
{ IsNotPublic: true } => "internal ", { IsNotPublic: true } => "internal ",