[mtouch] Rename method that clashes with new method in base class to fix compiler warning. (#4516)

Rename a method that clashes with a new method in a base class to avoid a
compiler warning about hidden inherited members.

Fixes:

    xamarin-macios/tools/linker/MobileSweepStep.cs(41,26): warning CS0114: 'MobileSweepStep.SweepAssembly(AssemblyDefinition)' hides inherited member 'SweepStep.SweepAssembly(AssemblyDefinition)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
This commit is contained in:
Rolf Bjarne Kvinge 2018-07-27 17:06:27 +02:00 коммит произвёл GitHub
Родитель 215ab7fc1a
Коммит 69eb5cf1a7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -32,13 +32,13 @@ namespace Xamarin.Linker {
switch (CurrentAction) {
case AssemblyAction.Link:
case AssemblyAction.Save:
SweepAssembly (assembly);
SweepAssemblyDefinition (assembly);
break;
}
}
}
protected virtual void SweepAssembly (AssemblyDefinition assembly)
protected virtual void SweepAssemblyDefinition (AssemblyDefinition assembly)
{
SweepMainModule (assembly.MainModule);
}

Просмотреть файл

@ -15,9 +15,9 @@ namespace MonoTouch.Tuner {
{
}
protected override void SweepAssembly (AssemblyDefinition assembly)
protected override void SweepAssemblyDefinition (AssemblyDefinition assembly)
{
base.SweepAssembly (assembly);
base.SweepAssemblyDefinition (assembly);
if (assembly.HasCustomAttributes)
SweepAttributes (assembly.CustomAttributes);