[generator] Reuse the [RequiresSuper] attribute from the platform assemblies. (#3453)

Bindings trying to override members with that attribute would produce a

```
error BI1055: bgen: Internal error: failed to convert type 'ObjCRuntime.RequiresSuperAttribute, Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Please file a bug report (https://bugzilla.xamarin.com) with a test case.
```

Fixes https://github.com/xamarin/maccore/issues/632
This commit is contained in:
Sebastien Pouliot 2018-02-12 08:10:02 -05:00 коммит произвёл GitHub
Родитель 12cf6e3350
Коммит c820fc2b56
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 2 добавлений и 6 удалений

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

@ -48,6 +48,7 @@ GENERATOR_ATTRIBUTE_SOURCES = \
$(TOP)/src/ObjCRuntime/PlatformAvailability2.cs \
$(TOP)/src/ObjCRuntime/PlatformAvailabilityShadow.cs \
$(TOP)/src/ObjCRuntime/Registrar.core.cs \
$(TOP)/src/ObjCRuntime/RequiresSuperAttribute.cs \
IKVM_REFLECTION_FLAGS = -d:NO_AUTHENTICODE,STATIC,NO_SYMBOL_WRITER

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

@ -1542,6 +1542,7 @@ SHARED_CORE_SOURCES = \
ObjCRuntime/PlatformAvailabilityShadow.cs \
ObjCRuntime/Protocol.cs \
ObjCRuntime/Registrar.core.cs \
ObjCRuntime/RequiresSuperAttribute.cs \
ObjCRuntime/Selector.cs \
Simd/MatrixDouble4x4.cs \
Simd/MatrixFloat2x2.cs \
@ -1577,7 +1578,6 @@ SHARED_SOURCES = \
ObjCRuntime/Registrar.cs \
ObjCRuntime/ReleaseAttribute.cs \
ObjCRuntime/RequiredFrameworkAttribute.cs \
ObjCRuntime/RequiresSuperAttribute.cs \
ObjCRuntime/Runtime.cs \
ObjCRuntime/Runtime.iOS.cs \
ObjCRuntime/Runtime.mac.cs \

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

@ -856,8 +856,3 @@ public class DefaultEnumValueAttribute : Attribute {
{
}
}
// Hint that overriding the member requires a call to the base type
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple=false)]
public class RequiresSuperAttribute : Attribute {
}