Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/linker/Linker.Steps/SweepStep.cs')
-rw-r--r--src/linker/Linker.Steps/SweepStep.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/linker/Linker.Steps/SweepStep.cs b/src/linker/Linker.Steps/SweepStep.cs
index e24f87486..ac38a2750 100644
--- a/src/linker/Linker.Steps/SweepStep.cs
+++ b/src/linker/Linker.Steps/SweepStep.cs
@@ -285,6 +285,9 @@ namespace Mono.Linker.Steps {
if (type.HasCustomAttributes)
SweepCustomAttributes (type);
+ if (type.HasGenericParameters)
+ SweepCustomAttributeCollection (type.GenericParameters);
+
if (type.HasProperties)
SweepCustomAttributeCollection (type.Properties);
@@ -312,8 +315,10 @@ namespace Mono.Linker.Steps {
{
for (int i = type.Interfaces.Count - 1; i >= 0; i--) {
var iface = type.Interfaces [i];
- if (Annotations.IsMarked (iface))
+ if (Annotations.IsMarked (iface)) {
+ SweepCustomAttributes (iface);
continue;
+ }
InterfaceRemoved (type, iface);
type.Interfaces.RemoveAt (i);
}
@@ -398,6 +403,9 @@ namespace Mono.Linker.Steps {
SweepDebugInfo (methods);
foreach (var method in methods) {
+ if (method.HasGenericParameters)
+ SweepCustomAttributeCollection (method.GenericParameters);
+
SweepCustomAttributes (method.MethodReturnType);
if (!method.HasParameters)