Clean up some compiler messages

This commit is contained in:
Katy Coe
2019-11-28 04:00:32 +01:00
parent f77a9e5289
commit de846ea6db
4 changed files with 13 additions and 13 deletions

View File

@@ -150,7 +150,7 @@ namespace Il2CppInspector.Reflection
_ => ""
};
public string GetModifierString(Scope usingScope) {
public string GetModifierString() {
// Interface methods and properties have no visible modifiers (they are always declared 'public abstract')
if (DeclaringType.IsInterface)
return string.Empty;
@@ -176,7 +176,7 @@ namespace Il2CppInspector.Reflection
if ((DeclaringType.BaseType?.GetAllMethods().Any(m => m.GetSignatureString() == GetSignatureString() && m.IsHideBySig) ?? false)
&& (((Attributes & MethodAttributes.VtableLayoutMask) == MethodAttributes.ReuseSlot && !IsVirtual)
|| (Attributes & MethodAttributes.VtableLayoutMask) == MethodAttributes.NewSlot))
modifiers.Append($"new ");
modifiers.Append("new ");
if (Name == "op_Implicit")
modifiers.Append("implicit ");