[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:
Родитель
215ab7fc1a
Коммит
69eb5cf1a7
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче